レポート メンバー アクセス サービス
注:
このサービスは現在、限られた一連のクライアントと Microsoft の従業員のみが利用できます。
bidder.rpt_report_member_access
に格納されているデータが更新されます。
注:
このサービスでは、 GET
、 POST
、 DELETE
のみがサポートされます。
REST API
HTTP メソッド | エンドポイント | 説明 |
---|---|---|
POST |
https://api.appnexus.com/rpt-report-member-access (テンプレート JSON) |
新しい report-member-access 設定を追加します。 |
DELETE |
https://api.appnexus.com/object?id=REPORT_MEMBER_ACCESS_ID 注: REPORT_MEMBER_ACCESS_ID は、指定された設定の一意に生成された ID であり、 GET を使用して取得できます。 |
カスタム テンプレートを削除します。 |
GET |
https://api.appnexus.com/rpt-report-member-access |
すべてのレポート メンバー アクセス設定を表示します。 |
GET |
https://api.appnexus.com/rpt-report-member-access?report_id=REPORT_ID |
特定のレポートのレポート メンバー アクセス設定を表示します。 |
JSON フィールド
フィールド | 型 (長さ) | 説明 |
---|---|---|
id |
int | レポート メンバーのアクセス設定の ID。 デフォルト: 自動生成された数値。 クエリ文字列で必要な On: PUT /DELETE 。 |
member |
object | アクセスを追加するメンバーの ID を持つオブジェクト。 デフォルト: None 必須: POST |
report |
object | アクセス権を追加するレポートの ID を持つオブジェクト。 デフォルト: None 必須: POST |
例
特定のレポートにアクセスできるすべてのメンバーを表示する
$ curl -b cookies -c cookies 'https://api.appnexus.com/rpt-report-member-access?report_id=44'
{
"response": {
"status": "OK",
"count": 28,
"start_element": 0,
"num_elements": 100,
"rpt-report-member-accesss": [
{
"id": 27,
"last_modified": "2013-03-01 20:37:01",
"member": {
"id": 357,
"billing_name": "OpenX"
},
"report": {
"id": 44,
"name": null
}
},
{
"id": 28,
"last_modified": "2013-04-09 18:13:25",
"member": {
"id": 459,
"billing_name": "Rubicon"
},
"report": {
"id": 44,
"name": null
}
},
...
}
特定のレポートへのアクセス権をメンバーに付与する
$ cat rpt_report_member_access
{
"rpt-report-member-access": {
"report": {
"id":44
},
"member": {
"id": 123
}
}
$ curl -b cookies -c cookies -X POST -d @rpt-report-member-access 'https://api.appnexus.com/rpt-report-member-access'
{
"response": {
"status": "OK",
"count": 1,
"start_element": 0,
"num_elements": 100,
"rpt-report-member-access": {
"id": 77,
"last_modified": "2015-01-15 20:37:01",
"member": {
"id": 123,
"billing_name": "MemberName"
},
"report": {
"id": 44,
"name": null
}
}
}
...
}