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.
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>
app_secret
you can list your app secret using app list, use this command line.apiToken
you can generate a token following these instructions