获取合作伙伴

使用此终端获取合作伙伴列表和关联数据。

操作前须知

要使用该终端,您需要 Adjust API 识别码。请按照验证指南中的说明操作,获得识别码。

终端

https://api.adjust.com/public/v1/partners

GET 请求

获取合作伙伴列表和关联数据。返回的数据为一个合作伙伴对象数组。

参数

参数数据类型In描述
After字符串查询从下一页获取元素的游标。
Before字符串查询从上一页获取元素的游标。
limit整数查询响应中包含的最大元素数,须为正整数值。

来自此终端的结果会通过游标进行分页。每页返回前一页和后一页的位置。您可以将这些信息包含在调用中来返回指定页。您还可以限定每页包含的项目数量。默认上限为 50

每个结果页都包含一个"paging"对象,其中包含游标位置。您可以使用这些游标位置来在不同页间程序化移动。例如,第一页可能包含如下结果:

v2
v1
"paging": {
   "next": "https://api.adjust.com/public/v2/apps/gwzpeepw8uf8/trackers/abc123/children?cursor=g2wAAAACYhW1_gxkAANuaWxq",
   "cursor": "g2wAAAACYhW1_gxkAANuaWxq"
}

要前往第二页,请使用next链接来返回来自下一个指定cursor位置的结果。

$ curl "https://api.adjust.com/public/v2/apps/gwzpeepw8uf8/trackers/abc123/children?cursor=g2wAAAACYhW1_gxkAANuaWxq"

响应

{
  "id": 1,
  "display_name": "String",
  "supports_cost_data": true
}

字段

示例

cURL

{
  "data": {
    "api_version": "1",
    "request_id": "FcK55-tdJUDOWQIAABsB",
    "timestamp": "2019-09-09T09:07:06Z",
    "paging": {
      "page_size": "1",
      "collection_size": "1",
      "total": "199",
      "next": "https://api.adjust.com/public/v1/partners?after=g2wAAAACYhW1_gxkAANuaWxq&limit=1",
      "previous": nil,
      "cursors": {
        "after": "g2wAAAACYhW1_gxkAANuaWxq",
        "before": nil
      }
    },
    "items": [
      {
        "id": 174,
        "display_name": "Adcolony",
        "supports_cost_data": true
      }
    ]
  }
}