Partager via


Service développeur

Ce service contient l’adresse et les informations de facturation de chaque développeur en tant qu’informations de référence. Bien que les développeurs puissent modifier ou supprimer leurs entrées, seuls les utilisateurs administratifs peuvent créer un développeur avec ce service. Pour obtenir de l’aide sur la création d’une entrée de développeur, contactez votre représentant Xandr.

API REST

HTTP, méthode Endpoint Description
GET https://api.appnexus.com/developer Afficher tous les développeurs
GET https://api.appnexus.com/developer?id=15 Afficher un développeur spécifique
POST https://api.appnexus.com/developer Ajouter un développeur : (administrateur Xandr uniquement)
PUT https://api.appnexus.com/developer?id=19 Modifier un développeur
DELETE https://api.appnexus.com/developer?id=19 Supprimer un développeur

Champs JSON

Champ Type Description
billing_address_1 string Première ligne de l’adresse du développeur.
Obligatoire sur : POST
billing_address_2 string Deuxième ligne de l’adresse du développeur.
Par défaut : null
billing_city string Ville dans laquelle réside le développeur.
Obligatoire sur : POST
billing_country chaîne Le pays dans lequel réside le développeur.
Obligatoire sur : POST
billing_region chaîne Région dans laquelle réside le développeur.
Obligatoire sur : POST
billing_postal_code string Code postal du développeur.
Obligatoire sur : POST
email chaîne Adresse e-mail du développeur.
Obligatoire sur : POST
last_modified date Date et heure de la dernière modification de ces informations.
phone string Numéro de téléphone du contact du développeur.
Obligatoire sur : POST

Exemples

Ajouter un développeur

$ cat add-developer.json
{
    "developer":
        {
        "id": 3535,
        "name": "John Smith" ,
        "entity_id": 32 ,
        "phone": "914-555-1212" ,
        "email": "JSmith@aol.com" ,
        "billing_address_1": "1 No Way" ,
        "billing_city": "New York" ,
        "billing_region": "Northeast" ,
        "billing_postal_code": "10010" ,
        "billing_country": "United States"
        }
}
$ curl -b cookies -c cookies -X POST -d @add-developer.json 'https://api.appnexus.com/developer'
{
    "response":{
        "status":"OK",
        "count":1,
        "id":19,
        "start_element":0,
        "num_elements":100,
        "developer":{
            "id":19,
            "name":"John Smith",
            "entity_id":32,
            "phone":"914-555-1212",
            "email":"JSmith@aol.com",
            "billing_address_1":"1 No Way",
            "billing_address_2":null,
            "billing_city":"New York",
            "billing_region":"Northeast",
            "billing_postal_code":"10010",
            "billing_country":"United States",
            "last_modified":"2013-05-03 17:58:02"
        },
        "dbg_info":{
            ...
        }
    }
}

Modifier un développeur

$ cat update-developer.json
{
    "developer":
        {
        "name": "John Smith" ,
        "phone": "914-555-2222"
        }
}
$ curl -b cookies -c cookies -X PUT -d @update-developer.json 'https://api.appnexus.com/developer?id=19'
{
    "response":{
        "status":"OK",
        "count":1,
        "id":"19",
        "start_element":0,
        "num_elements":100,
        "developer":{
            "id":19,
            "name":"John Smith",
            "entity_id":32,
            "phone":"914-555-2222",
            "email":"JSmith@aol.com",
            "billing_address_1":"1 No Way",
            "billing_address_2":null,
            "billing_city":"New York",
            "billing_region":"Northeast",
            "billing_postal_code":"10010",
            "billing_country":"United States",
            "last_modified":"2013-05-03 18:04:03"
        },
        "dbg_info":{
            ...
        }
    }
}

Afficher tous les développeurs

$ curl -b cookies -c cookies 'https://api.appnexus.com/developer'                                             
{
    "response":{
        "status":"OK",
        "count":17,
        "start_element":0,
        "num_elements":100,
        "developers":[
            {
                "id":1,
                "name":"AppNexus,
                 Inc.",
                "entity_id":null,
                "phone":null,
                "email":null,
                "billing_address_1":null,
                "billing_address_2":null,
                "billing_city":null,
                "billing_region":null,
                "billing_postal_code":null,
                "billing_country":null,
                "last_modified":"2011-09-16 15:38:16"
            },
            {
                "id":3,
                "name":"eXelate",
                "entity_id":246,
                "phone":null,
                "email":"jhackett@exelate.com",
                "billing_address_1":null,
                "billing_address_2":null,
                "billing_city":null,
                "billing_region":null,
                "billing_postal_code":null,
                "billing_country":null,
                "last_modified":"2012-05-22 15:20:58"
            },
        ],
        "dbg_info":{
            ...
        }
    }
}

Afficher un développeur spécifique

$ curl -b cookies -c cookies 'https://api.appnexus.com/developer?id=15'
{
    "response":{
        "status":"OK",
        "count":1,
        "start_element":0,
        "num_elements":100,
        "developer":{
            "id":15,
            "name":"FlxOne",
            "entity_id":null,
            "phone":null,
            "email":null,
            "billing_address_1":null,
            "billing_address_2":null,
            "billing_city":null,
            "billing_region":null,
            "billing_postal_code":null,
            "billing_country":null,
            "last_modified":"2013-03-08 15:03:06"
        },
        "dbg_info":{
            ...
        }
    }
}

Supprimer un développeur

$ curl -b cookies -c cookies -X DELETE 'https://api.appnexus.com/developer?id=19'
{
    "response":{
        "status":"OK",
        "count":1,
        "start_element":0,
        "num_elements":100,
        "dbg_info":{
            ...
        }
    }
}

Service d’installation d’application