SharingApi
in package
SharingApi Class Doc Comment
Tags
Table of Contents
Constants
- contentTypes : array<string|int, string> = ['getSharing' => ['application/json'], 'shareWi...
Properties
- $client : ClientInterface
- $config : Configuration
- $headerSelector : HeaderSelector
- $hostIndex : int
Methods
- __construct() : mixed
- getConfig() : Configuration
- getHostIndex() : int
- Get the host index
- getSharing() : SharingResponse|Error
- Operation getSharing
- getSharingAsync() : PromiseInterface
- Operation getSharingAsync
- getSharingAsyncWithHttpInfo() : PromiseInterface
- Operation getSharingAsyncWithHttpInfo
- getSharingRequest() : Request
- Create request for operation 'getSharing'
- getSharingWithHttpInfo() : array<string|int, mixed>
- Operation getSharingWithHttpInfo
- setHostIndex() : void
- Set the host index
- shareWith() : void
- Operation shareWith
- shareWithAsync() : PromiseInterface
- Operation shareWithAsync
- shareWithAsyncWithHttpInfo() : PromiseInterface
- Operation shareWithAsyncWithHttpInfo
- shareWithRequest() : Request
- Create request for operation 'shareWith'
- shareWithWithHttpInfo() : array<string|int, mixed>
- Operation shareWithWithHttpInfo
- unshareWith() : void
- Operation unshareWith
- unshareWithAsync() : PromiseInterface
- Operation unshareWithAsync
- unshareWithAsyncWithHttpInfo() : PromiseInterface
- Operation unshareWithAsyncWithHttpInfo
- unshareWithRequest() : Request
- Create request for operation 'unshareWith'
- unshareWithWithHttpInfo() : array<string|int, mixed>
- Operation unshareWithWithHttpInfo
- createHttpClientOption() : array<string|int, mixed>
- Create http client option
- handleResponseWithDataType() : array<string|int, mixed>
- responseWithinRangeCode() : bool
Constants
contentTypes
public
array<string|int, string>
contentTypes
= ['getSharing' => ['application/json'], 'shareWith' => ['application/json'], 'unshareWith' => ['application/json']]
Properties
$client
protected
ClientInterface
$client
$config
protected
Configuration
$config
$headerSelector
protected
HeaderSelector
$headerSelector
$hostIndex
protected
int
$hostIndex
Host index
Methods
__construct()
public
__construct([ClientInterface $client = null ][, Configuration $config = null ][, HeaderSelector $selector = null ][, int $hostIndex = 0 ]) : mixed
Parameters
- $client : ClientInterface = null
- $config : Configuration = null
- $selector : HeaderSelector = null
- $hostIndex : int = 0
-
(Optional) host index to select the list of hosts if defined in the OpenAPI spec
getConfig()
public
getConfig() : Configuration
Return values
ConfigurationgetHostIndex()
Get the host index
public
getHostIndex() : int
Return values
int —Host index
getSharing()
Operation getSharing
public
getSharing([string $contentType = self::contentTypes['getSharing'][0] ]) : SharingResponse|Error
The signed-in user's sharing relationships
Parameters
- $contentType : string = self::contentTypes['getSharing'][0]
-
The value for the Content-Type header. Check self::contentTypes['getSharing'] to see the possible values for this operation
Tags
Return values
SharingResponse|ErrorgetSharingAsync()
Operation getSharingAsync
public
getSharingAsync([string $contentType = self::contentTypes['getSharing'][0] ]) : PromiseInterface
The signed-in user's sharing relationships
Parameters
- $contentType : string = self::contentTypes['getSharing'][0]
-
The value for the Content-Type header. Check self::contentTypes['getSharing'] to see the possible values for this operation
Tags
Return values
PromiseInterfacegetSharingAsyncWithHttpInfo()
Operation getSharingAsyncWithHttpInfo
public
getSharingAsyncWithHttpInfo([string $contentType = self::contentTypes['getSharing'][0] ]) : PromiseInterface
The signed-in user's sharing relationships
Parameters
- $contentType : string = self::contentTypes['getSharing'][0]
-
The value for the Content-Type header. Check self::contentTypes['getSharing'] to see the possible values for this operation
Tags
Return values
PromiseInterfacegetSharingRequest()
Create request for operation 'getSharing'
public
getSharingRequest([string $contentType = self::contentTypes['getSharing'][0] ]) : Request
Parameters
- $contentType : string = self::contentTypes['getSharing'][0]
-
The value for the Content-Type header. Check self::contentTypes['getSharing'] to see the possible values for this operation
Tags
Return values
RequestgetSharingWithHttpInfo()
Operation getSharingWithHttpInfo
public
getSharingWithHttpInfo([string $contentType = self::contentTypes['getSharing'][0] ]) : array<string|int, mixed>
The signed-in user's sharing relationships
Parameters
- $contentType : string = self::contentTypes['getSharing'][0]
-
The value for the Content-Type header. Check self::contentTypes['getSharing'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \ForgeDashboard\Generated\Model\SharingResponse|\ForgeDashboard\Generated\Model\Error, HTTP status code, HTTP response headers (array of strings)
setHostIndex()
Set the host index
public
setHostIndex(int $hostIndex) : void
Parameters
- $hostIndex : int
-
Host index (required)
shareWith()
Operation shareWith
public
shareWith(string $username[, string $contentType = self::contentTypes['shareWith'][0] ]) : void
Share the signed-in user's dashboard with username
Parameters
- $username : string
-
username (required)
- $contentType : string = self::contentTypes['shareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['shareWith'] to see the possible values for this operation
Tags
shareWithAsync()
Operation shareWithAsync
public
shareWithAsync(string $username[, string $contentType = self::contentTypes['shareWith'][0] ]) : PromiseInterface
Share the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['shareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['shareWith'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceshareWithAsyncWithHttpInfo()
Operation shareWithAsyncWithHttpInfo
public
shareWithAsyncWithHttpInfo(string $username[, string $contentType = self::contentTypes['shareWith'][0] ]) : PromiseInterface
Share the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['shareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['shareWith'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceshareWithRequest()
Create request for operation 'shareWith'
public
shareWithRequest(string $username[, string $contentType = self::contentTypes['shareWith'][0] ]) : Request
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['shareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['shareWith'] to see the possible values for this operation
Tags
Return values
RequestshareWithWithHttpInfo()
Operation shareWithWithHttpInfo
public
shareWithWithHttpInfo(string $username[, string $contentType = self::contentTypes['shareWith'][0] ]) : array<string|int, mixed>
Share the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['shareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['shareWith'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of null, HTTP status code, HTTP response headers (array of strings)
unshareWith()
Operation unshareWith
public
unshareWith(string $username[, string $contentType = self::contentTypes['unshareWith'][0] ]) : void
Stop sharing the signed-in user's dashboard with username
Parameters
- $username : string
-
username (required)
- $contentType : string = self::contentTypes['unshareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['unshareWith'] to see the possible values for this operation
Tags
unshareWithAsync()
Operation unshareWithAsync
public
unshareWithAsync(string $username[, string $contentType = self::contentTypes['unshareWith'][0] ]) : PromiseInterface
Stop sharing the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['unshareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['unshareWith'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceunshareWithAsyncWithHttpInfo()
Operation unshareWithAsyncWithHttpInfo
public
unshareWithAsyncWithHttpInfo(string $username[, string $contentType = self::contentTypes['unshareWith'][0] ]) : PromiseInterface
Stop sharing the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['unshareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['unshareWith'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceunshareWithRequest()
Create request for operation 'unshareWith'
public
unshareWithRequest(string $username[, string $contentType = self::contentTypes['unshareWith'][0] ]) : Request
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['unshareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['unshareWith'] to see the possible values for this operation
Tags
Return values
RequestunshareWithWithHttpInfo()
Operation unshareWithWithHttpInfo
public
unshareWithWithHttpInfo(string $username[, string $contentType = self::contentTypes['unshareWith'][0] ]) : array<string|int, mixed>
Stop sharing the signed-in user's dashboard with username
Parameters
- $username : string
-
(required)
- $contentType : string = self::contentTypes['unshareWith'][0]
-
The value for the Content-Type header. Check self::contentTypes['unshareWith'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of null, HTTP status code, HTTP response headers (array of strings)
createHttpClientOption()
Create http client option
protected
createHttpClientOption() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —of http client options
handleResponseWithDataType()
private
handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed>
Parameters
- $dataType : string
- $request : RequestInterface
- $response : ResponseInterface
Return values
array<string|int, mixed>responseWithinRangeCode()
private
responseWithinRangeCode(string $rangeCode, int $statusCode) : bool
Parameters
- $rangeCode : string
- $statusCode : int