Krizalys Onedrive Onedrive - krizalys/onedrive-php-sdk GitHub Wiki
Krizalys\Onedrive\Onedrive
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
Methods
client
\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.
Arguments
-
$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:[]
.
buildServiceDefinition
\Krizalys\Onedrive\Definition\ServiceDefinitionInterface Krizalys\Onedrive\Onedrive::buildServiceDefinition()
Builds a service definition.
- Visibility: public
- This method is static.