All posts in Camayak APIs
Sometimes it is necessary to whitelist our publishing server IP addresses if you use enhanced web server security, or your publishing destination has active security plugins. Most large WordPress hosting companies, such as WP Engine, Cloudflare, Dreamhost, and Webfaction automatically configure blocking or rate limiting of XML-RPC requests, which are . . . Read more
<?php class Camayak_Request { // How many seconds the signed request can differ from // the current epoch seconds – the shorter the drift, // the less time the signed request has to be test. public $signed_url_drift = 5; // Your Camayak API key. private $api_key = ‘CAMAYAK_API_KEY’; // Your . . . Read more
Beta documentation. All specifications subject to change Introduction The Content API allows Camayak customers the ability to unidirectionally publish approved assignments to delivery platforms not directly supported by Camayak. Some example use cases for the Content API: Publishing approved assignments as Facebook Posts Publishing approved assignments as Tumblr Posts Publishing . . . Read more
<?php private function get_header_signature() { $key = ‘Camayak-Signature’; foreach (getallheaders() as $name => $value) { if($name == $key) { return $value; } } return NULL; } private function calculate_signature($epoch) { return hash_hmac(‘sha1’, $epoch . $this->api_key, $this->shared_secret); } public function verify() { // Verify that the incoming request is from Camayak. . . . Read more