PubNub

FREE
By dimashirokov
Updated 6 months ago
Communication
-/10
Popularity Score
-
Latency
-
Success Rate

PubNub API Documentation

Apply real-time publish/subscribe messaging to your program.

View API Details
POSTgetUserState
POSThereNow
POSTpresence
POSTpublishMessage
POSTwhereNow
POSTgetUserState

The state API is used to get key/value pairs specific to a subscriber uuid.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
channelsLIST
REQUIREDSpecifies the `channel` name to return occupancy results. If `channel` is not provided, `hereNow()` will return data for all `channels`. (`ch1`, `ch2`, `ch3`)
uuidSTRING
REQUIREDRequired: UUID to use, if not passed, a random will be generated.
subscribeKeyCREDENTIALS
REQUIREDRequired: The subscribe key obtained from PubNub.
Optional Parameters
channelGroupsLIST
OPTIONALThe channel group for which here now information should be received. (`ch1`, `ch2`, `ch3`)
cipherKeySTRING
OPTIONALIf passed, will encrypt the payloads.
authKeySTRING
OPTIONALIf PAM enabled, this key will be used on all requests.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication