RevokeToken
extends Endpoint
in package
Table of Contents
Constants
- PATH = "/v3/pam/%s/grant/%s"
- RESPONSE_IS_JSON = true
Properties
- $cachedTransports : array<string|int, mixed>
- $customHost : mixed
- $envelope : PNEnvelope
- $followRedirects : mixed
- $pubnub : PubNub
- $sortParams : bool
- $token : mixed
Methods
- __construct() : mixed
- buildData() : null
- buildPath() : string
- clear() : mixed
- Clear cached envelope
- createResponse() : PNRequestResult
- customParams() : array<string|int, mixed>
- envelope() : PNEnvelope
- Returns an Envelope that contains both result and status.
- getConnectTimeout() : int
- getOperationType() : int
- getRequestTimeout() : int
- httpMethod() : string
- isAuthRequired() : bool
- sync() : PNRequestResult
- Return a Result only.
- token() : mixed
- validateParams() : mixed
- buildParams() : array<string|int, mixed>
- Params build flow: signed <- custom <- default
- customHeaders() : mixed
- defaultHeaders() : mixed
- defaultParams() : array<string|int, mixed>
- fetchPayload() : array<string|int, mixed>
- getAffectedChannelGroups() : mixed
- getAffectedChannels() : mixed
- getAffectedUsers() : mixed
- getName() : string
- getTransport() : mixed
- invokeRequest() : PNEnvelope
- invokeRequestAndCacheIt() : PNEnvelope
- requestOptions() : array<string|int, mixed>
- validateChannelGroups() : mixed
- validatePublishKey() : mixed
- validateSecretKey() : mixed
- validateSubscribeKey() : mixed
- createStatus() : PNStatus
- getDefaultTransport() : Transport
Constants
PATH
public
mixed
PATH
= "/v3/pam/%s/grant/%s"
RESPONSE_IS_JSON
protected
mixed
RESPONSE_IS_JSON
= true
Properties
$cachedTransports
protected
static array<string|int, mixed>
$cachedTransports
= []
$customHost
protected
mixed
$customHost
= null
$envelope
protected
PNEnvelope
$envelope
$followRedirects
protected
mixed
$followRedirects
= true
$pubnub
protected
PubNub
$pubnub
$sortParams
protected
bool
$sortParams
= true
$token
protected
mixed
$token
Methods
__construct()
public
__construct(PubNub $pubnubInstance) : mixed
Parameters
- $pubnubInstance : PubNub
buildData()
public
buildData() : null
Return values
nullbuildPath()
public
buildPath() : string
Return values
stringclear()
Clear cached envelope
public
clear() : mixed
createResponse()
public
createResponse(mixed $response) : PNRequestResult
Parameters
- $response : mixed
Return values
PNRequestResultcustomParams()
public
customParams() : array<string|int, mixed>
Return values
array<string|int, mixed>envelope()
Returns an Envelope that contains both result and status.
public
envelope() : PNEnvelope
All Errors are wrapped, so no need to use try/catch blocks
Return values
PNEnvelopegetConnectTimeout()
public
getConnectTimeout() : int
Return values
intgetOperationType()
public
getOperationType() : int
Return values
intgetRequestTimeout()
public
getRequestTimeout() : int
Return values
inthttpMethod()
public
httpMethod() : string
Return values
stringisAuthRequired()
public
isAuthRequired() : bool
Return values
boolsync()
Return a Result only.
public
sync() : PNRequestResult
Return values
PNRequestResulttoken()
public
token(mixed $value) : mixed
Parameters
- $value : mixed
validateParams()
public
validateParams() : mixed
Tags
buildParams()
Params build flow: signed <- custom <- default
protected
buildParams() : array<string|int, mixed>
Return values
array<string|int, mixed>customHeaders()
protected
customHeaders() : mixed
defaultHeaders()
protected
defaultHeaders() : mixed
defaultParams()
protected
defaultParams() : array<string|int, mixed>
Return values
array<string|int, mixed>fetchPayload()
protected
static fetchPayload(mixed $json) : array<string|int, mixed>
Parameters
- $json : mixed
Tags
Return values
array<string|int, mixed>getAffectedChannelGroups()
protected
getAffectedChannelGroups() : mixed
getAffectedChannels()
protected
getAffectedChannels() : mixed
getAffectedUsers()
protected
getAffectedUsers() : mixed
getName()
protected
getName() : string
Return values
stringgetTransport()
protected
getTransport() : mixed
invokeRequest()
protected
invokeRequest() : PNEnvelope
Return values
PNEnvelopeinvokeRequestAndCacheIt()
protected
invokeRequestAndCacheIt() : PNEnvelope
Tags
Return values
PNEnveloperequestOptions()
protected
requestOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>validateChannelGroups()
protected
validateChannelGroups(array<string|int, string>|string $channels, array<string|int, string>|string $groups) : mixed
Parameters
- $channels : array<string|int, string>|string
- $groups : array<string|int, string>|string
Tags
validatePublishKey()
protected
validatePublishKey() : mixed
Tags
validateSecretKey()
protected
validateSecretKey() : mixed
Tags
validateSubscribeKey()
protected
validateSubscribeKey() : mixed
Tags
createStatus()
private
createStatus(int $category, mixed $response, ResponseInfo|null $responseInfo, PubNubException|null $exception) : PNStatus
Parameters
- $category : int
- $response : mixed
- $responseInfo : ResponseInfo|null
- $exception : PubNubException|null
Return values
PNStatusgetDefaultTransport()
private
getDefaultTransport() : Transport