Methods summary
public
|
#
__construct( $clientId, $clientSecret, $accessToken, $useExceptions = true )
|
public
array
|
#
call( string $httpMethod, string $endpoint, array $parameters = [] )
Master call. It makes the requests to the Wunderlist API endpoints.
Master call. It makes the requests to the Wunderlist API endpoints.
Parameters
- $httpMethod
- $endpoint
- $parameters
Returns
array
|
public
integer
|
#
getStatusCode( )
Get the HTTP status code from the last response.
Get the HTTP status code from the last response.
Returns
integer
|
protected
GuzzleHttp\Client
|
#
getHttpClient( )
Get a fresh instance of the Guzzle HTTP client.
Get a fresh instance of the Guzzle HTTP client.
Returns
GuzzleHttp\Client
|
protected
Exception|boolean
|
#
requires( array $requirements, array $attributes, boolean $exception,… )
Checks if the provided attributes contain certain fields.
Checks if the provided attributes contain certain fields.
Parameters
- $requirements
- A list of required attributes.
- $attributes
- The provided attributes
- $exception,…
- Call exception or return boolean.
Returns
Exception|boolean
|
Properties summary
protected
string
|
$baseUrl
Base URL for the Wunderlist API.
Base URL for the Wunderlist API.
|
#
'http://a.wunderlist.com/api/v1/'
|
protected
integer
|
$statusCode
HTTP status code returned by each request.
HTTP status code returned by each request.
|
|
protected
Guzzlehttp\Client
|
$http
|
|
public
string
|
$clientId
The Wunderlist app client id.
The Wunderlist app client id.
|
|
public
string
|
$clientSecret
The Wunderlist app client secret.
The Wunderlist app client secret.
|
|
protected
string
|
$accessToken
The Wunderlist app access token.
The Wunderlist app access token.
|
|
protected
boolean
|
$useExceptions
Whether or not the package should throw exceptions
when parameters are missing.
Whether or not the package should throw exceptions
when parameters are missing.
|
|