Documentation

RemoveDeviceFromPush extends PushEndpoint
in package

Table of Contents

Constants

PATH  = "/v1/push/sub-key/%s/devices/%s/remove"
PATH_APNS2  = "/v2/push/sub-key/%s/devices-apns2/%s/remove"
OPERATION_NAME  = "RemoveDeviceFromPush"
OPERATION_TYPE  = \PubNub\Enums\PNOperationType::PNRemoveAllPushNotificationsOperation
RESPONSE_IS_JSON  = true

Properties

$cachedTransports  : array<string|int, mixed>
$customHost  : mixed
$deviceId  : string
$envelope  : PNEnvelope
$environment  : string
$followRedirects  : mixed
$pubnub  : PubNub
$pushType  : string
$topic  : string

Methods

__construct()  : mixed
clear()  : mixed
Clear cached envelope
deviceId()  : $this
envelope()  : PNEnvelope
Returns an Envelope that contains both result and status.
environment()  : $this
pushType()  : $this
sync()  : mixed
Return a Result only.
topic()  : $this
buildData()  : null
buildParams()  : array<string|int, mixed>
Params build flow: signed <- custom <- default
buildPath()  : string
createResponse()  : PNPushRemoveAllChannelsResult
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
getConnectTimeout()  : int
getName()  : string
getOperationType()  : int
getPushType()  : string
getRequestTimeout()  : int
getTransport()  : mixed
httpMethod()  : string
invokeRequest()  : PNEnvelope
invokeRequestAndCacheIt()  : PNEnvelope
isAuthRequired()  : bool
requestOptions()  : array<string|int, mixed>
validateChannelGroups()  : mixed
validateDeviceId()  : mixed
validateParams()  : mixed
validatePublishKey()  : mixed
validatePushType()  : mixed
validateSecretKey()  : mixed
validateSubscribeKey()  : mixed
validateTopic()  : mixed
createStatus()  : PNStatus
getDefaultTransport()  : Transport

Constants

OPERATION_TYPE

protected mixed OPERATION_TYPE = \PubNub\Enums\PNOperationType::PNRemoveAllPushNotificationsOperation

RESPONSE_IS_JSON

protected mixed RESPONSE_IS_JSON = true

Properties

$cachedTransports

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

$customHost

protected mixed $customHost = null

$environment

protected string $environment = 'development'

$followRedirects

protected mixed $followRedirects = true

Methods

__construct()

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

clear()

Clear cached envelope

public clear() : mixed

deviceId()

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

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

environment()

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

pushType()

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

sync()

Return a Result only.

public sync() : mixed

Errors are thrown explicitly, so catch them with try/catch block

Tags
throws
PubNubException

topic()

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

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

getConnectTimeout()

protected getConnectTimeout() : int
Return values
int

getName()

protected getName() : string
Return values
string

getOperationType()

protected getOperationType() : int
Return values
int

getPushType()

protected getPushType() : string
Return values
string

getRequestTimeout()

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