Hi, i Good afternoon, I would like to know if there is a possibility to implement the UBER API in my Corona SDK application. I know it may be a pretty silly question but it’s because I really do not know if I can do this.
Please post information about how the API works (link to documentation) and I’m sure it will be fairly easy to answear your quesiton.
It looks like UBER has two ways to access data, through their mobile SDK’s for iOS and Android and through a REST API.
You would have to either use Corona Native builds to implement their mobile SDK’s or convince a community developer to make a plugin that they would be willing to put in the Corona Marketplace and maintain the plugin.
The other option is to use the REST API in which case you can use the network.request() API to communicate with UBER’s servers which is reasonably easy to do unless they have some difficult authentication requirements.
Keep in mind that if you want to do any mapping, our mapView is a native object which sits on top of your Corona app and you cannot draw on top of it. Any mapping you would want to do would require you to use the Google Maps WEB API in a native.newWebView which gets out of our ability to help you since that’s all done with Javascript.
Rob
Well, thanks for everyone’s help. Studying a little more I discovered that the UBER API uses oauth 2.0. So I found the following link to run oauth 2.0 on corona sdk:
https://forums.coronalabs.com/topic/62087-success-google-oauth2-for-corona-and-lua/
But, think to me … I actually just want the price of the race. Nothing more, just really the price. So I need this content:
https://developer.uber.com/docs/riders/references/api/v1.2/estimates-time-get
I already have white hair trying to implement this API in the corona, can anyone give me a light on what steps I should take? I believe that, before getting the time estimate, I need to have a file with this:
But I’m not getting through with these steps, I can not figure out how to make it work =\
Please post information about how the API works (link to documentation) and I’m sure it will be fairly easy to answear your quesiton.
It looks like UBER has two ways to access data, through their mobile SDK’s for iOS and Android and through a REST API.
You would have to either use Corona Native builds to implement their mobile SDK’s or convince a community developer to make a plugin that they would be willing to put in the Corona Marketplace and maintain the plugin.
The other option is to use the REST API in which case you can use the network.request() API to communicate with UBER’s servers which is reasonably easy to do unless they have some difficult authentication requirements.
Keep in mind that if you want to do any mapping, our mapView is a native object which sits on top of your Corona app and you cannot draw on top of it. Any mapping you would want to do would require you to use the Google Maps WEB API in a native.newWebView which gets out of our ability to help you since that’s all done with Javascript.
Rob
Well, thanks for everyone’s help. Studying a little more I discovered that the UBER API uses oauth 2.0. So I found the following link to run oauth 2.0 on corona sdk:
https://forums.coronalabs.com/topic/62087-success-google-oauth2-for-corona-and-lua/
But, think to me … I actually just want the price of the race. Nothing more, just really the price. So I need this content:
https://developer.uber.com/docs/riders/references/api/v1.2/estimates-time-get
I already have white hair trying to implement this API in the corona, can anyone give me a light on what steps I should take? I believe that, before getting the time estimate, I need to have a file with this:
But I’m not getting through with these steps, I can not figure out how to make it work =\