API:API Advertisers(Legacy)
From HasOffers
Contents |
Definition
Returns a list of advertisers.
- URLs: http://demo.hasoffers.com/admin/api/v1/advertisers.format
- Formats: json, xml, csv
- HTTP Method: GET
- Authentication: This API requires user authentication. Your API key should be passed with the request to provide authentication.
Required Parameters
- api_key The API Key used as authentication.
Optional Parameters
- limit
- The maximum number of results that should be returned. 0 is unlimited results. Default is 0.
- Example: http://demo.hasoffers.com/admin/api/v1/advertisers.json?api_key=NEThSQ1Ah92G8f7JYqQuO5hnsULkia&limit=50
- page
- The page number of the result set to coincide with the provided limit. Default is 1.
- Example: http://demo.hasoffers.com/admin/api/v1/advertisers.json?api_key=NEThSQ1Ah92G8f7JYqQuO5hnsULkia&limit=10&page=2
JSON Example
.
{
"success":true
,"rows":1
,"total_rows":10
,"data":{
"advertisers":[
{
"id":"19"
,"account_manager_id":"1"
,"company":"AdAPP Test"
,"status":"active"
,"date_added":"2009-07-10 13:56:32"
,"address1":"1 Ave"
,"address2":""
,"city":"Seattle"
,"region":"WA"
,"country":"US"
,"other":""
,"zipcode":"98121"
,"phone":"2065551212"
}
]
}
}
XML Example
.
<rsp stat="ok" rows="1" total_rows="10">
<advertiser>
<id>19</id>
<account_manager_id>1</account_manager_id>
<company>AdAPP Test</company>
<status>active</status>
<date_added>2009-07-10 13:56:32</date_added>
<address1>1 Ave</address1>
<address2/>
<city>Seattle</city>
<region>WA</region>
<country>US</country>
<other/>
<zipcode>98121</zipcode>
<phone>2065551212</phone>
</advertiser>
</rsp>
Email this page to a friend or co-worker