Wiki

Clone wiki

mobile.mng-ads.com-mngperf / auth-reporting

auth-reporting

POST /auth-reporting : Authentication Service

Before you can make calls to reporting API, you must use your email and password to get an authorization token. The token remains active for 2 hours, during which you do not need to re-authenticate.

  1. Create a json file including your email and password
    #!bash
    
    $ cat auth
    
#!json
{
    "auth": {
        "email" : "YOUR_EMAIL",
        "password" : "YOUR_PASSWORD"
    }
}
  1. Post the file to the authentication service

The request returns a token that remains valid for the 2 hours following your most recent call to the API.

#!bash

$ curl -X POST -d @auth https://xxxx.com/auth-reporting 

  1. success

    #!json
    
    {
        "response":{
            "status":"OK",
            "token":"05ef0ecc56aee3b7d36dd5db63261f45cb11b545"
        }
    }
    

  2. error

    #!json
    {
        "response":{
            "error_id":"SYSTEM",
            "error":"Username or password not set in request"
        }
    }
    

Available API

Updated