hockeyappvisual-studio-app-center-test

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.


Solution

  • 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