Freemius_Api_WordPress
Description Description
Source Source
File: includes/pum-sdk/freemius/includes/sdk/FreemiusWordPress.php
Expand full source code Collapse full source code View on Trac
Methods Methods
- __construct
- CurlResolveToIPv4 — Sets CURLOPT_IPRESOLVE to CURL_IPRESOLVE_V4 for cURL-Handle provided as parameter
- ExecuteRequest
- FindClockDiff — Find clock diff between current server to API server.
- GenerateAuthorizationParams — Generate Authorization request headers:
- GetLogger
- GetSignedUrl — Get API request URL signed via query string.
- GetUrl
- IsCurlError
- IsHttps
- MakeRequest — Makes an HTTP request. This method can be overridden by subclasses if developers want to do fancier things or use something other than wp_remote_request() to make the request.
- MakeStaticRequest
- Ping — Ping API to test connectivity.
- SetClockDiff — Set clock diff for all API calls.
- SetHttp — Set API connection protocol.
- SignRequest — Sign request with the following HTTP headers: Content-MD5: MD5(HTTP Request body) Date: Current date (i.e Sat, 14 Feb 2016 20:24:46 +0000) Authorization: FS {scope_entity_id}:{scope_entity_public_key}:base64encode(sha256(string_to_sign, {scope_entity_secret_key}))
- Test — If successful connectivity to the API endpoint using ping.json endpoint.
- ThrowCloudFlareDDoSException
- ThrowSquidAclException
- ThrowWPRemoteException