Connector
in
implements
ConnectorInterface
Class Connector
Table of Contents
BASE_URI | 'https://cloud.acquia.com/api' | |
---|---|---|
URL_ACCESS_TOKEN | 'https://accounts.acquia.com/api/auth/oauth/token' | |
$provider | GenericProvider | |
$client | Client | |
$accessToken | AccessTokenInterface|string | |
__construct() | Connector constructor. | mixed |
createRequest() | Creates an authenticated Request instance. | RequestInterface |
sendRequest() | Sends the request to the API using Guzzle. | ResponseInterface |
Constants
BASE_URI
string
$BASE_URI
= 'https://cloud.acquia.com/api'
URL_ACCESS_TOKEN
string
$URL_ACCESS_TOKEN
= 'https://accounts.acquia.com/api/auth/oauth/token'
Properties
$provider
protected
GenericProvider
$provider
$client
protected
Client
$client
$accessToken
protected
AccessTokenInterface|string
$accessToken
Methods
__construct()
Connector constructor.
public
__construct(
$config :
array
)
: mixed
Parameters
- $config : array
Tags
Return values
mixedcreateRequest()
Creates an authenticated Request instance.
public
createRequest(
$verb :
mixed
, $path :
mixed
)
: RequestInterface
Parameters
- $verb : mixed
- $path : mixed
Tags
Return values
RequestInterfacesendRequest()
Sends the request to the API using Guzzle.
public
sendRequest(
$verb :
mixed
, $path :
mixed
, $options :
mixed
)
: ResponseInterface
Parameters
- $verb : mixed
- $path : mixed
- $options : mixed