Skip to content

Advertisement Channel List

Get List Of Advertisement Channels Endpoint

Summary

This endpoint allows you to get list Advertisement Channels of your MetoCrm account related with patient or lead create.

HTTP Method

  • GET

API Endpoint

https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/advertisement-channels-meta

Authentication

  • Use Webhook type private key.
  • Include the api-key in the header.

Request Parameters

No Parameter Required.

Example Requests

Curl

curl --location 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/advertisement-channels-meta' \
--header 'api-key: {private-key}'

JavaScript

const axios = require('axios');

let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/advertisement-channels-meta',
    headers: {
        'api-key': '{private-key}'
    }
};

axios.request(config)
        .then((response) => {
            console.log(JSON.stringify(response.data));
        })
        .catch((error) => {
            console.log(error);
        });

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/advertisement-channels-meta',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'api-key: {private-key}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Format

  • JSON

Responses

Example Success Response

Status Code : 200
Format : JSON
Message :

[
    {
        "id": 1,
        "title": "Partner Companies",
        "code": "partner_companies"
    },
    {
        "id": 2,
        "title": "Social Media Content",
        "code": "social_media_content"
    },
    {
        "id": 3,
        "title": "Referral",
        "code": "referral"
    },
    {
        "id": 4,
        "title": "Facebook Ads",
        "code": "facebook_ads"
    },
    {
        "id": 5,
        "title": "Google Ads",
        "code": "google_ads"
    },
    {
        "id": 6,
        "title": "Tiktok Ads",
        "code": "tiktok_ads"
    }
]