Upsight logo Back to top

Retrieving Account Reports

Retrieving Account Reports

Description


Returns the latest generated reports.

Note Where possible, this API conforms to the standard JSON/JSONP over HTTP API conventions.

Retrieving Account Reports

HTTP:GET


/accountreports?<auth:str>&<report_type:str>

Retrieving Account Reports

Parameters


ParameterTypeDescription
typestring Comma delimited string, used to grab specific reports. If not used than all reports are returned.
auth Authentication token (authentication header may be used instead). Required

Retrieving Account Reports

Example Request 1


GET /accountreport?auth=3faba1eabb53404794bc973cb9269a20&type=publisher

Retrieving Account Reports

Example Response 1


{
    'errobj': None,
    'error': None,
    'response': [
        {
            'title': 'PlayHaven Pub Report',
            'url'  : "https://playhaven-reports.s3.amazonaws.com/advertiser_report_2012-09-18-PlayHaven.xlsx?Signature=R3GnZGytWvLhfZvSywUtYBNCDks%3D&Expires=1348570805&AWSAccessKeyId=AKIAI2PDNMF554M3LEOA",
            'report_type' : 'publisher',
            'created_on': 1325379600,
            'expires_on': 1325984400,
            'user_id' : 1
        }
    ]
}

Retrieving Account Reports

Example Request 2


GET /accountreport?auth=3faba1eabb53404794bc973cb9269a20

Retrieving Account Reports

Example Response 2


{
    'errobj': None,
    'error': None,
    'response': [
        {
            'title': 'PlayHaven Ad Report',
            'url'  : "https://playhaven-reports.s3.amazonaws.com/advertiser_report_2012-09-18-PlayHaven.xlsx?Signature=R3GnZGytWvLhfZvSywUtYBNCDks%3D&Expires=1348570805&AWSAccessKeyId=AKIAI2PDNMF554M3LEOA",
            'report_type' : 'advertiser',
            'created_on': 1325379600,
            'expires_on': 1325984400,
            'user_id' : 1
        },
        {
            'title': 'PlayHaven Pub Report',
            'url'  : "https://playhaven-reports.s3.amazonaws.com/advertiser_report_2012-09-18-PlayHaven.xlsx?Signature=R3GnZGytWvLhfZvSywUtYBNCDks%3D&Expires=1348570805&AWSAccessKeyId=AKIAI2PDNMF554M3LEOA",
            'report_type' : 'publisher',
            'created_on': 1325379600,
            'expires_on': 1325984400,
            'user_id' : 1
        }
    ]
}

Retrieving Account Reports

Example Request 3


GET /accountreport?auth=3faba1eabb53404794bc973cb9269a20&type=publisher,advertiser

Retrieving Account Reports

Example Response 3


{
    'errobj': None,
    'error': None,
    'response': [
        {
            'title': 'PlayHaven Ad Report',
            'url'  : "https://playhaven-reports.s3.amazonaws.com/advertiser_report_2012-09-18-PlayHaven.xlsx?Signature=R3GnZGytWvLhfZvSywUtYBNCDks%3D&Expires=1348570805&AWSAccessKeyId=AKIAI2PDNMF554M3LEOA",
            'report_type' : 'advertiser',
            'created_on': 1325379600,
            'expires_on': 1325984400,
            'user_id' : 1
        },
        {
            'title': 'PlayHaven Pub Report',
            'url'  : "https://playhaven-reports.s3.amazonaws.com/advertiser_report_2012-09-18-PlayHaven.xlsx?Signature=R3GnZGytWvLhfZvSywUtYBNCDks%3D&Expires=1348570805&AWSAccessKeyId=AKIAI2PDNMF554M3LEOA",
            'report_type' : 'publisher',
            'created_on': 1325379600,
            'expires_on': 1325984400,
            'user_id' : 1
        }
    ]
}