-
Notifications
You must be signed in to change notification settings - Fork 69
Krizalys Onedrive Onedrive
Christophe Vidal edited this page Aug 4, 2019
·
1 revision
A facade exposing main OneDrive functionality while hiding implementation details.
Currently, this class exposes only one function, static, with a limited number of parameters. This allows users to create Client instances with minimal knowledge of API internals.
Getting started with a OneDrive client is as trivial as:
$client = Onedrive::client('<YOUR_CLIENT_ID>');- Class name: Onedrive
- Namespace: Krizalys\Onedrive
\Krizalys\Onedrive\Client Krizalys\Onedrive\Onedrive::client(string $clientId, \Krizalys\Onedrive\mixed[string] $options)
Creates a Client instance and its dependencies.
- Visibility: public
- This method is static.
-
$clientId string - The client ID.
-
$options Krizalys\Onedrive\mixed[string]
The options to use while creating this object. Supported options:
-
'state'(object): the OneDrive client state, as returned by {@see Client::getState() getState()}. Default:[].
-
\Krizalys\Onedrive\Definition\ServiceDefinitionInterface Krizalys\Onedrive\Onedrive::buildServiceDefinition()
Builds a service definition.
- Visibility: public
- This method is static.