PlayerIO

The fastest way to build online games without breaking a sweat.

HTML5 (Javascript) Client Reference

javascript (html5) client class informationClass client

Language: Javascript (HTML5)

An instance of this class is returned after successfully authenticating a user to PlayerIO. It contains the id of the current user, and methods for making all API calls on behalf of that user.

Example

Authenticate and create a BigDB Object

Properties

 
achievements :achievements

The Achievements service

bigDB :bigDB

The BigDB service

connectUserId :string

User id of the currently connected user

errorLog :errorLog

The ErrorLog service

gameFS :gameFS

The GameFS service

gameId :string

The game id of the client

gameRequests :gameRequests

The GameRequests service

multiplayer :multiplayer

The Multiplayer service

notifications :notifications

The Notifications service

oneScore :oneScore

The OneScore service

payVault :payVault

The PayVault service

playerInsight :playerInsight

The PlayerInsight service

publishingNetwork :publishingNetwork

The PlayerIO Publishing Network service

client.achievements

achievements :achievements

The Achievements service

client.bigDB

bigDB :bigDB

The BigDB service

client.connectUserId

connectUserId :string

User id of the currently connected user

client.errorLog

errorLog :errorLog

The ErrorLog service

client.gameFS

gameFS :gameFS

The GameFS service

client.gameId

gameId :string

The game id of the client

client.gameRequests

gameRequests :gameRequests

The GameRequests service

client.multiplayer

multiplayer :multiplayer

The Multiplayer service

client.notifications

notifications :notifications

The Notifications service

client.oneScore

oneScore :oneScore

The OneScore service

client.payVault

payVault :payVault

The PayVault service

client.playerInsight

playerInsight :playerInsight

The PlayerInsight service

client.publishingNetwork

publishingNetwork :publishingNetwork

The PlayerIO Publishing Network service