開発者サービス
このサービスには、各開発者の住所と課金情報が参照情報として含まれています。 開発者はエントリを変更または削除できますが、このサービスを使用して新しい開発者を作成できるのは管理ユーザーだけです。 開発者エントリの作成に関するヘルプについては、Xandr の担当者にお問い合わせください。
REST API
HTTP メソッド | エンドポイント | 説明 |
---|---|---|
GET |
https://api.appnexus.com/developer |
すべての開発者を表示する |
GET |
https://api.appnexus.com/developer?id=15 |
特定の開発者を表示する |
POST |
https://api.appnexus.com/developer |
開発者の追加: (Xandr 管理者のみ) |
PUT |
https://api.appnexus.com/developer?id=19 |
開発者を変更する |
DELETE |
https://api.appnexus.com/developer?id=19 |
開発者を削除する |
JSON フィールド
フィールド | 種類 | 説明 |
---|---|---|
billing_address_1 |
string | 開発者アドレスの最初の行。 必須: POST |
billing_address_2 |
string | 開発者アドレスの 2 行目。 既定値: null |
billing_city |
string | 開発者が存在する市区町村。 必須: POST |
billing_country |
string | 開発者が住んでいる国。 必須: POST |
billing_region |
string | 開発者が存在するリージョン。 必須: POST |
billing_postal_code |
string | 開発者の郵便番号。 必須: POST |
email |
string | 開発者のメール アドレス。 必須: POST |
last_modified |
date | この情報が最後に変更された日付と時刻。 |
phone |
string | 開発者の連絡先の電話番号。 必須: POST |
例
開発者を追加する
$ 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":{
...
}
}
}
開発者を変更する
$ 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":{
...
}
}
}
すべての開発者を表示する
$ 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":{
...
}
}
}
特定の開発者を表示する
$ 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":{
...
}
}
}
開発者を削除する
$ 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":{
...
}
}
}