\Pydio\OCS\ClientOCSClient

Class OCSClient

Summary

Methods
Properties
Constants
sendInvitation()
cancelInvitation()
acceptInvitation()
declineInvitation()
findEndpointsForURL()
findEndpointsForClient()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getClient()
No private properties found
N/A

Methods

sendInvitation()

sendInvitation(\Pydio\OCS\Model\ShareInvitation  $invitation) : boolean

Sends an invitation to a remote user on a remote server

Parameters

\Pydio\OCS\Model\ShareInvitation $invitation

Throws

\Exception

Returns

boolean —

success

cancelInvitation()

cancelInvitation(\Pydio\OCS\Model\ShareInvitation  $invitation) : boolean

Cancels a sent invitation

Parameters

\Pydio\OCS\Model\ShareInvitation $invitation

Throws

\Exception

Returns

boolean —

success

acceptInvitation()

acceptInvitation(\Pydio\OCS\Model\RemoteShare  $remoteShare) : boolean

Accepts the invitation sent by the original owner on a remote server

Parameters

\Pydio\OCS\Model\RemoteShare $remoteShare

Throws

\Exception

Returns

boolean —

success

declineInvitation()

declineInvitation(\Pydio\OCS\Model\RemoteShare  $remoteShare) : boolean

Declines the invitation sent by the original owner on a remote server

Parameters

\Pydio\OCS\Model\RemoteShare $remoteShare

Throws

\Exception

Returns

boolean —

success

findEndpointsForURL()

findEndpointsForURL(string  $url) : array

Retrieves the OCS Provider endpoints for the URL

Parameters

string $url

Returns

array

findEndpointsForClient()

findEndpointsForClient(\GuzzleHttp\Client  $client) : array

Retrieves the OCS Provider endpoints for the Guzzle Client via a GET request

Parameters

\GuzzleHttp\Client $client

Throws

\Exception

Returns

array —

endpoints location

getClient()

getClient(  $url) : \GuzzleHttp\Client

Parameters

$url

Returns

\GuzzleHttp\Client