Get all affiliates

HTTP method

Endpoint

GET

/v1/affiliates

Get all affiliates in a network.

Query string parameters

Conditions

Parameters

Type

Description

Offset

offset

offset

Check page scale.

Limit

limit

limit

The number of date displays in each page. Maximum = 1000

Sort

sort

sort

Ranking according to the specified field ascending "+", or descending "-".

Filters

filters

filter

Query requirements of Specify field.

EQUAL_TO NOT_EQUAL_TO LESS_THAN LESS_THAN_OR_EQUAL_TO GREATER_THAN GREATER_THAN_OR_EQUAL_TO CONTAINS NOT_CONTAINS NULL NOT_NULL

Fields

fields

field

You can choose the field of the query (the result of the query is in line with the selected field).

id

integer

A string that uniquely identifies this affiliate.

first_name

string

The first_name of the this affiliate.

last_name

string

The last_name of the this affiliate.

email

string

The email of the this affiliate.

company

string

The company of the this affiliate.

country

string

The country of the affiliate’s physical address.

status

string

Affiliate's status.

instant_message_account

string

Instant message account.

instant_message_type

integer

Types of instant message.

manager_id

integer

Manager id.

phone

string

The phone number of the affiliate.

website

string

create_time

integer

Create time.

Response body parameters

Field

Type

Description

id

integer

A string that uniquely identifies this affiliate.

first_name

string

The first_name of the this affiliate.

last_name

string

The last_name of the this affiliate.

email

string

The email of the this affiliate.

company

string

The company of the this affiliate.

country

string

The country of the affiliate’s physical address.

status

string

Affiliate's status.

instant_message_account

string

Instant message account.

instant_message_type

integer

Types of instant message.

manager_id

integer

Manager id.

phone

string

The phone number of the affiliate.

website

string

create_time

integer

Create time.

totalPages

integer

The list of data pages (associated with your limit).

totalRows

integer

Total number of available data.

offset

integer

The number of records from a collection to skip. Iterating over large collections with this parameter can be slow.

limit

integer

The number of data displayed on one page

Example request

Request GET https://{networkname}.api.offerslook.com/v1/affiliates?limit=10&filters[id][GREATER_THAN]=4859&sort=-id,+name

Request GET http://{networkname}.api.offerslook.com/v1/affiliates?limit=10&filters[id][GREATER_THAN]=4859&sort=-id,+name

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "rowset": [
          {
            "id": 4862,
            "email": "sunny@test.com",
            "first_name": "test",
            "last_name": "test",
            "country": "Aland Islands",
            "status": "deleted",
            "manager_id": 70,
            "website": "",
            "create_time": 1458370776,
            "company": "YQ",
            "instant_message_type": 5,
            "instant_message_account": "12343235",
            "phone": ""
          },
          {
            "id": 4861,
            "email": "test@test.com",
            "first_name": "offer",
            "last_name": "offer",
            "country": "Aland Islands",
            "status": "active",
            "manager_id": 1,
            "website": "http://www.baidu.com",
            "create_time": 1458370315,
            "company": "baidu",
            "instant_message_type": 0,
            "instant_message_account": "12345",
            "phone": ""
          },
          {
            "id": 4860,
            "email": "other@test.com",
            "first_name": "affiliate",
            "last_name": "test",
            "country": "Bahrain",
            "status": "active",
            "manager_id": 179,
            "website": "http://www.taobao.com",
            "create_time": 1458542113,
            "company": "taobao",
            "instant_message_type": 1,
            "instant_message_account": "123",
            "phone": ""
          }
        ],
        "totalPages": 1,
        "totalRows": 3,
        "offset": 1,
        "limit": 10
      }
    }

Last updated