GET/v1.1/domain_whitelist
Return a list of domains added to your domain whitelist, and whether the domain whitelist is currently being enforced.
Endpoint
https://api.sharedcount.com/v1.1/domain_whitelist
Parameters
Name | Type | Description | Required |
---|---|---|---|
apikey | string | Your API Key. | true |
Code Examples
curl 'https://api.sharedcount.com/v1.1/domain_whitelist?apikey=YOUR_API_KEY'
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();
Result Format
{
"domains": [],
"whitelist_domains_enabled": false
}
Unauthorized
{
"domains": ["yourdomain.com"],
"whitelist_domains_enabled": true
}