Javascript Client Reference
Main class for authenticating a user and getting a client.
Class: achievementThis class encapsulates all the data of a single achievement.
Class: achievementsThe Achievements service. This class is used to update the progress of an achievement for the current user, and loading achievements of other users. All achievements have to be defined in the admin panel first.
Class: bigDBThe BigDB service. This class is used to create, load, and delete database objects. All database objects are stored in tables and have a unique key. You can set up tables in your admin panel, and you can also set up indexes there for when you want to load objects by properties or ranges of properties.
Class: clientAn 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.
Class: connectionAn instance of this class is returned after successfully joining a Multiplayer room. It encapsulates the active network connection between the user and the room, and has methods for sending and handling messages, as well as disconnecting fom the room. See the Multiplayer class for examples.
Class: databaseobjectThis class represents a database object in BigDB. It contains all the data of the database object, as well as a method for persisting any changes back to BigDB.
Class: errorLogThe ErrorLog service. This class has methods for writing custom errors to your game's error log. You can browse your game's error log in the PlayerIO admin panel.
Class: gameFSThe GameFS service. This class is used to get an absolute URL for assets you have stored in GameFS.
Class: gameRequestThis class encapsulates all the data of a received game request.
Class: gameRequestsThe GameRequest service. This class has methods for sending game requests to other users, and for handling the requests received by the current user. All game request types have to be defined in the admin panel first.
Class: leaderboardEntryThis class encapsulates a leaderboard entry for a user, it contains the connectUserId, the absolute rank of the user, and the score of the user on the leaderboard this entry was loaded from.
Class: leaderboardsThe Leaderboard service. This class has methods for setting a player's score on a leaderboard, getting the number of players on a leaderboard, and getting toplists of players or the neighbourhood of players around the current player. Leaderboard groups have to be defined in the admin panel first.
Class: messageRepresents a message sent between client and server. A message consists of a string type, and a payload of zero or more typed parameters.
Class: multiplayerThe Multiplayer service. This class has method for listing, creating, and joining multiplayer rooms. Once a user has been sucessfully connected to a room, a connection object will be returned. This class is also used to override the development server setting when developing and testing multiplayer code against your local development server.
Class: notificationEndpointThis class encapsulates all the data of a notification endpoint.
Class: notificationsThe Notifications service. This class is used for registering mobile endpoints and sending mobile push notifications to other users.
Class: payVaultThe PayVault service. Instances of this class represent a specific user's Vault, and contains methods and properties both for inspecting and manipulating the contents. All properties and methods that inspect the Vault requires that it is up-to-date first. This can be achieved explicitly by calling the refresh() method or implicitly by calling any method which modifies the Vault such as credit() or debit().
Class: payVaultHistoryEntryThis class represents an entry in a user's PayVault history.
Class: playerInsightThe PlayerInsight service. This class is used for setting segments for the current user and tracking events in PlayerInsight.
Class: PlayerIOErrorInstances of this class are returned in all error callbacks and contain information about the error that occurred.
Class: PlayerIOErrorCodeThis class contains a list of all the error codes that can be returned from PlayerIO calls
Class: publishingNetworkThe PlayerIO Publishing Network service. This class is used to access all the functionality available to games that are published on the PlayerIO Publishing Network.
Class: publishingNetworkPaymentsThe PlayerIO Publishing Network Payments service. This class is used to initiate in-game payments for games that are published on the PlayerIO Publishing Network.
Class: publishingNetworkProfileThis class encapsulates all the data of a PlayerIO Publishing Network Profile.
Class: publishingNetworkProfilesPlayerIO Publishing Network Profiles service. This class is used to fetch or show the profile of the current user, or to load the profiles of other users.
Class: publishingNetworkRelationsThe PlayerIO Publishing Network Relations service. This class is used to fetch the current users friends, and to show the various friend management dialogs for games published on the PlayerIO Publishing Network.
Class: quickConnectThe QuickConnect service. This class is used for support methods for users created and authenticated through the Simple Users feature.
Class: simpleGetCaptchaOutputCaptcha information for the QuickConnect simple users feature.
Class: vaultItemThis class represents an item in a user's Vault