uber-api

Uber API - HTTPS needed for Price Estimates?

柔情痞子 提交于 2019-12-13 02:38:29
问题 I use Uber's API to create a WordPress plugin so people can order taxis to your physical location. I'm looking at integrating the Price Estimates using the endpoint here - https://developer.uber.com/v1/endpoints/#price-estimates - I've a solution but having a bit of problem implementing it. I'm getting an error on testing which in Google Chrome Developer Tools which states "Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers." I suspect it's due to

Uber server token are not working any more, How to generate new server token

半腔热情 提交于 2019-12-12 10:43:14
问题 Uber server token are not working any more, on dashboard it shows "Please reach out to your Uber BD Representative for server token access." 回答1: It seems Uber is changing API access and has done some sort of purge which forces getting access through some approved "Business Development" rep or process. You can read this page, that might help. 来源: https://stackoverflow.com/questions/56738976/uber-server-token-are-not-working-any-more-how-to-generate-new-server-token

uber/jaeger-client-node: backend wont receive data

馋奶兔 提交于 2019-12-12 04:47:43
问题 I'm currently looking into different openTracing Tracer-Implementations. I want to use uber/jaeger-client-node but the backend won't receive my traces. Here is what I did: I started the all-in-one docker image: docker run -d -p5775:5775/udp -p16686:16686 jaegertracing/all-in-one:latest Next, i wrote a simple example application: Gist But when I go to Jaeger UI, nothing is shown about the example service. What did I do wrong? Thanks 回答1: There are two issues here. One is that your code sets

Uber SDK for iOS - get real time ride request status made via deep link

橙三吉。 提交于 2019-12-12 03:57:50
问题 I'm having some trouble finding a way to do this. I got an app that uses Uber SDK for iOS. I was able to add the "RideRequestButton" with "Ride there with Uber" text to do a deeplink to the Uber app. Also, I'm done requesting the token using SSO and fetch the token with Request scope. Now the problem is... I'm not sure how to fetch the status of the current ride request made via the deeplink. Is this possible? Thanks! I tried following an algorithm mentioned in one of the thread which is to

How to figure out if an Uber ride is actually a UberEats delivery

China☆狼群 提交于 2019-12-12 03:01:37
问题 I am trying to figure out if an Uber ride is actually a UberEats delivery. I thought the way to do that is with the products API, but when I tried to use the product API resource, all I got back is "Unauthorized access to product". I can usually use the product API resource for other product ids. but this I cannot. Can someone help? 回答1: This was a bug which is now resolved. UberEATS should not be surfaced in the products endpoint. 来源: https://stackoverflow.com/questions/36291022/how-to

Can't create app with UberRUSH API

寵の児 提交于 2019-12-12 02:35:37
问题 I'm trying to create a new app using the UberRUSH API. When I go to the developer dashboard and try to register a new app, when I select UberRUSH API I get a message saying, You need to register for UberRUSH before creating an app. Which I already have. Clicking the link to register for UberRUSH gives the following message, You are already signed in to your business account You already have a business account. If you would like to create a new account, please log out first. Am I missing a

Does Uber API work with a local environment? Getting Access-Control-Allow-Origin issue on my https://localhost

爱⌒轻易说出口 提交于 2019-12-11 13:36:40
问题 Im currently testing the Uber API, and I havent been able to get any results yet, since my webapp is getting a "Access-Control-Allow-Origin" issue: XMLHttpRequest cannot load https://api.uber.com/v1/estimates/price. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost' is therefore not allowed access. The response had HTTP status code 422. I've set already the origin URI: https://localhost But the Access-Control-Allow-Origin error keeps

Make call to Uber API in JSON format from within Unity

本小妞迷上赌 提交于 2019-12-11 05:36:41
问题 I am using the Uber API inside of Unity and I am able to login and then authenticate to get the Token, but I have run into a roadblock when calling the actual API. I believe my issue is that I need to be making the call in JSON format, but I don't know how to do that. I'm new to HTTP and API's in general. Here is my code: private IEnumerator TestRequest(){ Debug.Log(sToken); WWWForm form = new WWWForm(); //WWW www = new WWW(); form.headers["Content-Type"] = "application.json"; form.headers[

Uber API - requests endpoint cannot read read json

℡╲_俬逩灬. 提交于 2019-12-11 00:12:22
问题 I am trying to generate a POST request for the requests endpoint in the following python code: import requests ... response = requests.post( 'https://sandbox-api.uber.com/v1/requests', headers = { 'Authorization': 'Bearer %s' % access_token, 'Content-Type': 'application/json' }, params={"start_latitude":"37.334381","start_longitude":"-121.89432","end_latitude":"37.77703","end_longitude":"-122.419571","product_id":"a1111c8c-c720-46c3-8534-2fcdd730040d"}) data = response.json() The access_token

Uber Request Details API not returning data

青春壹個敷衍的年華 提交于 2019-12-10 11:35:00
问题 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.