get_report

BrandMetrics.get_report(reportId, **kwargs) → ApiResponse

Gets a previously requested report specified by identifier.

This is the polling call. A report is generated asynchronously, so call this with the reportId that post_report() returned until status reads SUCCESSFUL; only then does location carry a signed S3 address that can be downloaded.

Keyword Args
path reportId (string): [required] The report Id to be fetched.
Returns:

  • status (string): IN_PROGRESS, SUCCESSFUL or a failure status.

  • statusDetails (string): the sentence behind that status.

  • location (string): the signed URL, empty until success.

  • format (string): the format the report was generated in.

  • expiration (integer): how long the result stays available.

  • brandsInfo (array): the brands the report covers, each with id and name. Absent while the report is still running.

Return type:

ApiResponse. payload holds

An unknown identifier is not a 404: the service answers 400 with NoDataFoundException and a message naming the id, which means the route ran and looked it up.