List Traffic-sources

List Traffic-sources

GET https://api.ocamba.com/v2/ocamba/traffic-sources
Returns a list of Traffic-sources

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/ocamba/traffic-sources" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/ocamba/traffic-sources';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/ocamba/traffic-sources");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 9,
  "items": [
    {
      "id": "1",
      "name": "Direct"
    },
    {
      "id": "6",
      "name": "Paid"
    }
  ]
}
Responses
Tip
Searchable field is name. Sortable fields are name and id. Filterable fields are: id, name, type, create_time and update_time.