setOfferAffiliateList
1.1.1 Summary
Set the approved affiliat list or the blocked affiliate list with the specific offer.1.1.2 Request
Request Method: POST
Parameters:
Parameter | Description | Type | Data Range |
key |
Network API Key; *Required |
string |
POST Parameters:
Parameter | Description | Type | Data Range |
id |
Offer ID *Required |
Int | >0 |
approved_affiliate |
an affiliate id list that is able to access the specific offer. You can request a string of ID s and use comma as a delimiter, For ex: 1,5,6 When the access type of the offer is public, then this parameter is ignored. |
String | |
blocked_affiliate |
an affiliate id list that is blocked by the specific offer. You can request a string of ID s and use comma as a delimiter, For ex: 1,5,6 When the access type of the offer is private, then this parameter is ignored. |
String |
1.1.3 Response
Header:HTTP Status | Object | Description | Error Code |
202 | Success | 0 | |
400 | Parameter | Invalid Parameter | 63XX |
Content Format: JSON
1.1.4 Example
Sample Request URL:
http://{Your_Network_Domain}/api/v1/setOfferAffiliateList?key=603E3F0E3266&id=12
Post Data:
{ "id": 12, "approved_affiliate": "11,12,13", "blocked_affiliate": "21,22,23" } |
Response sample:
{ "httpStatus": 202, "data": [ ], "errorCode": 0, "message": "" } |
Close All
API V3
API V2
-
User - Network
-
User - Affiliate
-
Offer
-
Report
-
Dictionary
API V1 (DEPRECATED)