API Method – setOfferAffiliateList

    setOfferAffiliateList
    Set a list of affiliates who are accessible to an offer.

API Category

    Campaign

HTTP Method

    POST

Request Call Example

    HTTP:
    POST /api/v2/setOfferAffiliateList?key=yourapikey HTTP/1.1
    Host: yourapplicationdomain
 
    id=19844&approved_affiliate=1%2C2%2C3&blocked_affiliate=4%2C5%2C6
 
    Java:
    Unirest.post("http://yourapplicationdomain/api/v2/setOfferAffiliateList?key=yourapikey").header("Content-Type", "application/x-www-form-urlencoded").body("id=19844&approved_affiliate=1%2C2%2C3&blocked_affiliate=4%2C5%2C6")

Parameters


Name Type Description
id* Integer Offer Id
approved_affiliate String Filter – a list of APPROVED affiliate ids: 3,123,445
blocked_affiliate String Filter – a list of BLOCKED affiliate ids: 3,123,445

Response

Sample in JSON:

{
    "httpStatus": 202,
    "data": {
        "result": 0,
        "msg": ""
    },
    "errorCode": 0,
    "message": ""
}