Documentation

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

RESPONSE_IS_JSON

protected mixed RESPONSE_IS_JSON = true

Properties

$cachedTransports

protected static array<string|int, mixed> $cachedTransports = []

$customHost

protected mixed $customHost = null

$followRedirects

protected mixed $followRedirects = true

Methods

__construct()

public __construct(PubNub $pubnubInstance) : mixed
Parameters
$pubnubInstance : PubNub

buildData()

public buildData() : null
Return values
null

buildPath()

public buildPath() : string
Return values
string

clear()

Clear cached envelope

public clear() : mixed

customParams()

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
PNEnvelope

getConnectTimeout()

public getConnectTimeout() : int
Return values
int

getOperationType()

public getOperationType() : int
Return values
int

getRequestTimeout()

public getRequestTimeout() : int
Return values
int

httpMethod()

public httpMethod() : string
Return values
string

isAuthRequired()

public isAuthRequired() : bool
Return values
bool

token()

public token(mixed $value) : mixed
Parameters
$value : mixed

buildParams()

Params build flow: signed <- custom <- default

protected buildParams() : array<string|int, mixed>
Return values
array<string|int, 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
throws
PubNubResponseParsingException
Return values
array<string|int, mixed>

getAffectedChannelGroups()

protected getAffectedChannelGroups() : mixed

getAffectedChannels()

protected getAffectedChannels() : mixed

getAffectedUsers()

protected getAffectedUsers() : mixed

getName()

protected getName() : string
Return values
string

getTransport()

protected getTransport() : mixed

requestOptions()

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
throws
PubNubValidationException

        
On this page

Search results