PlayerIO

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

HTML5 (Javascript) Client Reference

javascript (html5) publishingNetwork class informationClass publishingNetwork

Language: Javascript (HTML5)

The PlayerIO Publishing Network service. This class is used to access all the functionality available to games that are published on the PlayerIO Publishing Network.

Example

Refreshing data

Properties

 
payments :publishingNetworkPayments

Access to PlayerIO Publishing Network payments

profiles :publishingNetworkProfiles

Access to the PlayerIO Publishing Network profiles

relations :publishingNetworkRelations

Access to PlayerIO Publishing Network relations

userToken :string

A UserToken that can be used to authenticate as the current user.

Methods

 
refresh (successCallback, errorCallback):

Refresh the Profiles and Relations

publishingNetwork.payments

payments :publishingNetworkPayments

Access to PlayerIO Publishing Network payments

publishingNetwork.profiles

profiles :publishingNetworkProfiles

Access to the PlayerIO Publishing Network profiles

publishingNetwork.relations

relations :publishingNetworkRelations

Access to PlayerIO Publishing Network relations

publishingNetwork.userToken

userToken :string

A UserToken that can be used to authenticate as the current user.

publishingNetwork.refresh

refresh (successCallback, errorCallback):

Refresh the Profiles and Relations

Arguments

successCallback:function()
Callback function that will be called when the refresh is complete.
errorCallback:function(PlayerIOError)
Callback function that will be called if an error occurs.