Can I get access with version when trying to get access of API - uber-api

I'm trying to get access of Uber API (api.uber.com/v2) using http method POST. But, I'm getting an error when I'm trying to get access along with version (api.uber.com/v2). The same API is working when I am trying to get it without version (api.uber.com) and it is working. How to get access with version?

Related

Flutter web CORS issue for google place API's in flutter web

How can I resolve CORS issue in 3rd party API's.
--ERROR XMLHttpRequest error.
onError:Exception: Error==========XMLHttpRequest error.
[]
Using this API for to get the the short names of places;
https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJrTF9CPptqDsRVgqHeuvWQvU&key=xxxxxxxx
Since I was not able to get shortnames from any plugins, so used this api, but which is working perfect in mobile not working on web.

Get ms graph access token from flutterfire signInWithAuthProvider method

I have a flutter app that uses microsoft authentication and I want to use the ms graph api. Flutterfire didn't have support for microsoft and other OAuth providers so I used firebase_auth_oauth. Now with a new update flutterfire supports microsoft authentication and I followed the docs to use it. The problem is that firebase_auth_oauth gave me back a OAuthCredential (using its signInOAuth method) with an access token and flutterfires signInWithAuthProvider method gives me back a UserCredential. So my question is how can you get an access token after signing in?
Note: the firebase_auth_oauth plugin doesn't work anymore and I think it has to do with the update to flutterfire. And I don't think the firebase_auth_oauth plugin will be updated.

Download latest artifacts from app center / Hockey app using API (token)

Recently the hockey moved to app center and i want to download the latest version of android and iOS version on the fly using the API.
What I tried ?
checked the official swagger api-specs
1. #GET("/v0.1/apps/{owner_name}/{app_name}/recent_releases")
2. #GET("/v0.1/apps/{owner_name}/{app_name}/builds/{build_id}/downloads/{download_type}")
but the download url provided by the second url has a different host and it doesn't work.
This API:
#GET("/v0.1/apps/{owner_name}/{app_name}/builds/{build_id}/downloads/{download_type}")
is to download builds if you use the Build service from App Center. If you only use Distribute service, try one of these APIs to get the release details, which includes the download url:
https://openapi.appcenter.ms/#/distribute/releases_getLatestByUser
https://openapi.appcenter.ms/#/distribute/releases_getLatestByDistributionGroup
UPDATED
The api's has been changed, and the new api we can use is
#GET("/v0.1/public/sdk/apps/{app_secret}/releases/latest")
fun latestRelease(#Header("X-API-Token") apiToken: String, #Path("app_secret") secret: String): Call<JsonObject>
offical swagger api
app_secret you can list your app secret using app list, use this command line.
apiToken you can generate a token following these instructions
The API's changed, and /v0.1/public/sdk/apps/{app_secret}/releases/latest is no longer supported.
you can use instead
https://api.appcenter.ms/v0.1/sdk/apps/{app_secret}/releases/latest
Another better option then you can easily get any version is to use
https://api.appcenter.ms/v0.1/apps/{owner_name}/{app_name}/releases/{release_id}
Get a release with id release_id or 'latest' to get the latest release that was distributed to the current user (from all the distribution groups).
Swagger

Dropbox SDK request error

I am using the SwiftyDropbox SDK and I am trying to upload an image file in my app but I keep getting the error:
DropboxSDK: error making request to
/1/files_put/dropbox/MelanomaDiagnosis/6E3D4F7B-3342-44CA-B228-01919ED2DB19ExposureTimeVal16666000Scale1000000000.jpg - (400) v1_retired
This v1_retired error indicates that you're calling Dropbox API v1, which is retired. (The "/1/" in the request URL also indicates that you're using API v1.)
The SwiftyDropbox SDK does not use API v1; it uses API v2, so it sounds like you actually are using a different SDK. Please follow the instructions for SwiftyDropbox to install it.

Github API v3 giving 404 errors

Im using Joomla platform JGithub to communicate with Github API v3.
The code are all ok and i was able to use all GET methods (getComment etc).
But all POST, DELETE methods are failing with 404 error with a message Nothing Found.
Am just using username and password for authentication (No Oauth and stuff..)
Any idea why this error might be.
Another Joomla code was able to do this with the same script.
This is what confusing me.