Documentation

WhereNow extends Endpoint
in package

Table of Contents

Constants

PATH  = "/v2/presence/sub-key/%s/uuid/%s"
RESPONSE_IS_JSON  = true

Properties

$cachedTransports  : array<string|int, mixed>
$customHost  : mixed
$envelope  : PNEnvelope
$followRedirects  : mixed
$pubnub  : PubNub
$uuid  : string

Methods

__construct()  : mixed
WhereNow constructor.
buildPath()  : string
clear()  : mixed
Clear cached envelope
envelope()  : PNEnvelope
Returns an Envelope that contains both result and status.
getConnectTimeout()  : int
getRequestTimeout()  : int
sync()  : PNWhereNowResult
Return a Result only.
uuid()  : $this
buildData()  : null
buildParams()  : array<string|int, mixed>
Params build flow: signed <- custom <- default
createResponse()  : PNWhereNowResult
customHeaders()  : mixed
customParams()  : array<string|int, mixed>
defaultHeaders()  : mixed
defaultParams()  : array<string|int, mixed>
fetchPayload()  : array<string|int, mixed>
getAffectedChannelGroups()  : mixed
getAffectedChannels()  : mixed
getAffectedUsers()  : mixed
getName()  : string
getOperationType()  : int
getTransport()  : mixed
httpMethod()  : string
invokeRequest()  : PNEnvelope
invokeRequestAndCacheIt()  : PNEnvelope
isAuthRequired()  : bool
requestOptions()  : array<string|int, mixed>
validateChannelGroups()  : mixed
validateParams()  : mixed
validatePublishKey()  : mixed
validateSecretKey()  : mixed
validateSubscribeKey()  : mixed
createStatus()  : PNStatus
getDefaultTransport()  : Transport

Constants

PATH

public mixed PATH = "/v2/presence/sub-key/%s/uuid/%s"

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()

WhereNow constructor.

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

buildPath()

public buildPath() : string
Return values
string

clear()

Clear cached envelope

public clear() : 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

getRequestTimeout()

public getRequestTimeout() : int
Return values
int

uuid()

public uuid(string $uuid) : $this
Parameters
$uuid : string
Return values
$this

buildData()

protected buildData() : null
Return values
null

buildParams()

Params build flow: signed <- custom <- default

protected buildParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

customHeaders()

protected customHeaders() : mixed

customParams()

protected customParams() : 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

getOperationType()

protected getOperationType() : int
Return values
int

getTransport()

protected getTransport() : mixed

httpMethod()

protected httpMethod() : string
Return values
string

PNHttpMethod

isAuthRequired()

protected isAuthRequired() : bool
Return values
bool

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