Bewerken

Share via


Download the CAB file for an error in your app

Use this method in the Microsoft Store analytics API to download the CAB file that is associated with a particular error in your app that has been reported to Partner Center. This method can only download the CAB file for an app error that occurred in the last 30 days. CAB file downloads are also available in the Failures section of the Health report in Partner Center.

Before you can use this method, you must first use the get details for an error in your app method to retrieve the ID of the CAB file you want to download.

Prerequisites

To use this method, you need to first do the following:

  • If you have not done so already, complete all the prerequisites for the Microsoft Store analytics API.
  • Obtain an Azure AD access token to use in the request header for this method. After you obtain an access token, you have 60 minutes to use it before it expires. After the token expires, you can obtain a new one.
  • Get the ID of the CAB file you want to download. To get this ID, use the get details for an error in your app method to retrieve details for a specific error in your app, and use the cabId value in the response body of that method.

Request

Request syntax

Method Request URI
GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/cabdownload

Request header

Header Type Description
Authorization string Required. The Azure AD access token in the form Bearer <token>.

Request parameters

Parameter Type Description Required
applicationId string The Store ID of the app for which you want to download a CAB file. The Store ID is available on the App identity page of Partner Center. An example Store ID is 9WZDNCRFJ3Q8. Yes
cabId string The unique ID of the CAB file you want to download. To get this ID, use the get details for an error in your app method to retrieve details for a specific error in your app, and use the cabId value in the response body of that method. Yes

 

Request example

The following example demonstrates how to download a CAB file using this method. Replace the applicationId and cabId parameters with the appropriate values for your app.

GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/cabdownload?applicationId=9NBLGGGZ5QDR&cabId=1336373323853 HTTP/1.1
Authorization: Bearer <your access token>

Response

This method returns a 302 (redirect) response code, and the Location header in the response is assigned to the shared access signature (SAS) URI of the CAB file. The caller is redirected to this URI to automatically download the CAB file.