Class Client
Crunchmail\Client main class
- GuzzleHttp\Client
-
Crunchmail\Client
public
object
|
|
public
|
|
public
mixed
|
|
public
string
|
|
public
|
|
public
string
|
#
getTokenFromCredentials( string $identifier, string $password )
Return an auth token from credentials |
public
string
|
|
protected
null
|
public static
array
|
$paths
Allowed paths and mapping to api resource path ex: $client->recipients will access path /mails |
#
[
'recipients' => 'mails',
"optouts" => 'opt-outs'
]
|
public static
array
|
$entities
Plural / Singular names of entites This is used to generate class name that need singular form |
#
[
'categories' => 'category',
'preview' => 'preview',
'lists' => 'contactList'
]
|
public static
array
|
$methods
List of authorized methods on client. ex: $client->get($url); |
#
[
'get',
'delete',
'head',
'options',
'patch',
'post',
'put'
//'request' // request is disable for now, not implemented
]
|
public
string
|
$format
Default request format |
#
'json'
|
public
array
|
$headers
Default headers |
#
[]
|