API Docs

Version:  1.0

GET/v1.0/domain_whitelist

Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.


Definition

https://api.sharedcount.com/v1.0/domain_whitelist


Parameters

Query Params
apikey:
required
stringYOUR_APP_KEY

Result Format

Success
Failure
For users with the whitelist enabled
{"domains": [], "whitelist_domains_enabled": false}
Unauthorized
{"domains": ["yourdomain.com"], "whitelist_domains_enabled": true}

Documentation

Node.js
Python
Php
npm i sharedcount-sdk

const SharedCountApi = require('sharedcount-sdk');
let sharedCountApiInstance = new SharedCountApi(YOUR_API_KEY);
 
//Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
var domainWhiteList = sharedCountApiInstance.getWhiteListedDomains();
pip install sharedcountsdk

from sharedcountsdk import SharedCountApi
sharedCountApiInstance = SharedCountApi('YOUR_API_KEY')
 
#Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
domainWhiteList = sharedCountApiInstance.getDomainWhiteList()
 
composer require sharedcount/sharedcount-sdk

require __DIR__ . '/vendor/sharedcount/sharedcount-sdk/lib/api.php';
$sharedcountApiInstance = new SharedcountApi('YOUR_API_KEY');
 
//Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
$domainWhiteList = $sharedcountApiInstance->getWhiteListedDomains();