Documentation

Connector 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

$accessToken

protected AccessTokenInterface|string $accessToken

Methods

__construct()

Connector constructor.

public __construct( $config : array ) : mixed
Parameters
$config : array
Tags
inheritdoc
Return values
mixed

createRequest()

Creates an authenticated Request instance.

public createRequest( $verb : mixed , $path : mixed ) : RequestInterface
Parameters
$verb : mixed
$path : mixed
Tags
inheritdoc
Return values
RequestInterface

sendRequest()

Sends the request to the API using Guzzle.

public sendRequest( $verb : mixed , $path : mixed , $options : mixed ) : ResponseInterface
Parameters
$verb : mixed
$path : mixed
$options : mixed
Tags
inheritdoc
Return values
ResponseInterface

Search results