OP\CRM
Synopsis
class CRM
{
- // members
- private string $access_token = '';
- private static array $headers = ;
- // methods
- public void __construct()
- public string getCacheKey()
- protected array CreateTokenHTTPQuery()
- public string getResourceURL()
- private string RequestAccessToken()
- public void HeadersDeAssociative()
- public CRMResult fetch()
- public static CRMResult request()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
private
- $access_token
- $headers
Methods
private
- RequestAccessToken() — Creates the authentication token used for communication with CRM
protected
- CreateTokenHTTPQuery() — Builds the query used to fetch the token. is able to use client_credentials or password authentication methods
public
- __construct() — Builds the query used to fetch the token. is able to use client_credentials or password authentication methods
- HeadersDeAssociative()
- fetch() — Fetches data from the CRM service
- getCacheKey() — builds a unique key to store the token against based on the content of the connection details
- getResourceURL() — returns the resource of where the data is coming from
- request() — Calls a static request based on defauly yml paramaters