uber-api

Uber Invalid OAuth 2.0 credentials provided Uber Authentication In android

落爺英雄遲暮 提交于 2019-12-10 07:27:49
问题 Im integration uber ride request api. I successfully authenticated the uber account . I can get user history and user profile from uber api but I am not getting v1.2/requests/estimate.But when i request ride . using the below code ... Im getting the response . {"message":"Invalid OAuth 2.0 credentials provided.","code":"unauthorized"} public JSONObject getFareid(String address,String product_id,floatstart_latitude,float start_longitude,float end_latitude,floatend_longitude,String token,String

Uber API /v1/estimates/time responds No authentication provided

三世轮回 提交于 2019-12-08 14:13:26
In order to test if the urls I made is correct, I put them in my browser to see if I can GET results. First , I tried GET /v1/products which should return all types of cars and I put it in the browser like this: https://api.uber.com/v1/products?server_token=MY_TOKEN&latitude=39.914286&longitude=116.461745 Which works fine and gives me a big JSON of products: {"products":[{"capacity":4,"product_id":"0ed2dbad-c769-41f5-b66d-0767da627f9e","price_details":{"service_fees":[],"cost_per_minute":0.25,"distance_unit":"km","minimum":10.0,"cost_per_distance":1.5,"base":0.001,"cancellation_fee":8.0,

Webhooks not receiving Uber callback

夙愿已清 提交于 2019-12-06 08:12:58
问题 I have configured my application to receive callbacks on sandbox request api status changes, but I have not been receiving any call to my webhook url. I have been able to test my web hook url with a post and it works so I dont think its the url that is the cause of the issue. Note I am able to change the status through a Put request to the sandbox and afterwards on polling the request endpoint I see the status changes I made. Yet no call to my webhook url set in the config. Note the url I

Uber Request Details API not returning data

可紊 提交于 2019-12-06 07:25:22
I'm seeing an issue with Uber /v1/requests/{request_id} API. Per Uber API doc, I'm authorizing with OAuth 2.0 bearer token with request scope, passing in valid request_id , etc. (My OAuth 2.0 login is working correctly, so I know my access token is valid.) The response I get is always: SUCCESS: { code = forbidden; message = Forbidden; } A sample request I'm making is: https://api.uber.com/v1/requests/118f2b74-1bea-4e75-b7de-3b034e5zd811 Using Uber API Sandbox, however, I get a valid response. For example: URL: https://sandbox-api.uber.com/v1/requests/888d3da2-1433-4a6b-d1d1-e1f1061fe256

What is the redirectURL I should put in my Uber app?

自闭症网瘾萝莉.ら 提交于 2019-12-06 02:37:04
问题 I'm reading Uber's sdk/api doc but I am a rookie and I don't know what the redirectURL should be. Is it a given url from Uber? Because I couldn't find it. Or is it an url for a webpage customized by app developer deployed their own server/local machine? If so, how should I write it? Totally confused on this point. Please help with some details as possible. Many thanks! 回答1: Here I solved this problem. Actually I was confused that if the redirect url is a url for web site on some server, then

Uber Invalid OAuth 2.0 credentials provided Uber Authentication In android

亡梦爱人 提交于 2019-12-05 13:40:10
Im integration uber ride request api. I successfully authenticated the uber account . I can get user history and user profile from uber api but I am not getting v1.2/requests/estimate.But when i request ride . using the below code ... Im getting the response . {"message":"Invalid OAuth 2.0 credentials provided.","code":"unauthorized"} public JSONObject getFareid(String address,String product_id,floatstart_latitude,float start_longitude,float end_latitude,floatend_longitude,String token,String scope) { try { httpClient = new DefaultHttpClient(); httpPost = new HttpPost(address); params.add(new

Webhooks not receiving Uber callback

﹥>﹥吖頭↗ 提交于 2019-12-04 14:39:22
I have configured my application to receive callbacks on sandbox request api status changes, but I have not been receiving any call to my webhook url. I have been able to test my web hook url with a post and it works so I dont think its the url that is the cause of the issue. Note I am able to change the status through a Put request to the sandbox and afterwards on polling the request endpoint I see the status changes I made. Yet no call to my webhook url set in the config. Note the url I used as the web hook in my app settings page is a subdomain with this format: https://subdomain.domain.com

What is the redirectURL I should put in my Uber app?

拟墨画扇 提交于 2019-12-04 08:08:43
I'm reading Uber's sdk/api doc but I am a rookie and I don't know what the redirectURL should be. Is it a given url from Uber? Because I couldn't find it. Or is it an url for a webpage customized by app developer deployed their own server/local machine? If so, how should I write it? Totally confused on this point. Please help with some details as possible. Many thanks! Boris Here I solved this problem. Actually I was confused that if the redirect url is a url for web site on some server, then the architect would be quite complex and there seems to be no way to identify which authorization code

Cannot Get Token from Uber API with Valid Access Key

有些话、适合烂在心里 提交于 2019-12-01 23:34:27
I've been trying for the past few days to integrate my app with uber, but for some reason during the oauth2 authentication I can't get uber to give me a valid token. I can get an access code but when using curl, I can't seem to get an access token, no matter how I arrange my script. Here's what I have: <?php echo $_GET['code']."<br>"; $token = curl_init(); $param = array( 'client_secret' => 'MY_SECRET', 'client_id' => 'MY_ID', 'grant_type' => 'authorization_code', 'code' => "{$_GET['code']}" ); $postData = ''; foreach($param as $k => $v) { $postData .= $k . '='.urlencode($v).'&'; } $postData =

Uber API endpoints not working with real server domain but working well with sandbox

守給你的承諾、 提交于 2019-12-01 12:19:16
问题 I have been testing Uber API for a month and I have seen some unstable behaviors recently. In my code there are some unusual response returned from Uber endpoints. Now I am pasting the screen shots of my code here below: You can see I have a global string type variable "baseURL", I keep switching it between real server and sandbox as below: "https://api.uber.com/v1" and "https://sandbox-api.uber.com/v1" But from my testing result, I can tell that most the API in sandbox work perfectly well