-
Notifications
You must be signed in to change notification settings - Fork 2
Core Endpoints
Below are the currently supported core endpoints.
$brands = $api->getCoreApi()->getBrands();You can filter the results as shown below. For a full list of supported filtering options, see https://api.supportpal.com/api.html#core-brand-get
$brands = $api->getCoreApi()->getBrands(['enabled' => 1]);$brand = $api->getCoreApi()->getBrand($id);$settings = $api->getCoreApi()->getSettings();$ips = $api->getCoreApi()->getIpBans();You can filter the results as shown below. For a full list of supported filtering options, see https://api.supportpal.com/api.html#core-ip-ban-get
$ips = $api->getCoreApi()->getIpBans(['type' => 1]);$ip = $api->getCoreApi()->getIpBan($id);$createIpBan = new \SupportPal\ApiClient\Model\Core\Request\CreateIpBan(['ip' => '123.1.3.4', 'type' => 1]);
$api->getCoreApi()->createIpBan($createIpBan);For a full list of parameters, see https://api.supportpal.com/api.html#core-ip-ban-post
$updateIpBan = new \SupportPal\ApiClient\Model\Core\Request\UpdateIpBan(['ip' => '123.1.3.4', 'type' => 1]);
$api->getCoreApi()->updateIpBan($id, $updateIpBan);For a full list of parameters, see https://api.supportpal.com/api.html#core-ip-ban-put
$api->getCoreApi()->deleteIpBan($id);$ips = $api->getCoreApi()->getWhitelistedIps();You can filter the results as shown below. For a full list of supported filtering options, see https://api.supportpal.com/api.html#core-ip-whitelist-get
$ips = $api->getCoreApi()->getWhitelistedIps(['ip' => '23.123.12.3']);$ip = $api->getCoreApi()->getWhitelistedIp($id);$createWhitelistedIp = new \SupportPal\ApiClient\Model\Core\Request\CreateWhitelistedIp(['ip' => '123.1.3.4']);
$api->getCoreApi()->createWhitelistedIp($createWhitelistedIp);For a full list of parameters, see https://api.supportpal.com/api.html#core-ip-whitelist-post
$updateWhitelistedIp = new \SupportPal\ApiClient\Model\Core\Request\UpdateWhitelistedIp(['event_operator' => 1]);
$api->getCoreApi()->updateWhitelistedIp($id, $updateWhitelistedIp);For a full list of parameters, see https://api.supportpal.com/api.html#core-ip-whitelist-put
$api->getCoreApi()->deleteWhitelistedIp($id);$languages = $api->getCoreApi()->getLanguages();You can filter the results as shown below. For a full list of supported filtering options, see https://api.supportpal.com/api.html#core-language-get
$languages = $api->getCoreApi()->getLanguages(['enabled' => 0]);$rules = $api->getCoreApi()->getSpamRules();For a full list of supported filtering options, see https://api.supportpal.com/api.html#core-spam-rules-get
$rule = $api->getCoreApi()->getSpamRule($id);$createSpamRule = new \SupportPal\ApiClient\Model\Core\Request\CreateSpamRule(['text' => 'spam rule text', 'type' => 0]);
$api->getCoreApi()->createSpamRule($createSpamRule);For a full list of parameters, see https://api.supportpal.com/api.html#core-spam-rules-post
$updateSpamRule = new \SupportPal\ApiClient\Model\Core\Request\UpdateSpamRule(['type' => 1]);
$api->getCoreApi()->updateSpamRule($id, $updateSpamRule);For a full list of parameters, see https://api.supportpal.com/api.html#core-spam-rules-put
$api->getCoreApi()->deleteSpamRule($id);