Profile Box API

From Neuron Interactive

Jump to: navigation, search

Some platforms provide functionality to show a profile box about your game on user profiles.

Receiving Notification URL

When a user logs in using the OpenID of one of these special providers, an additional parameter is sent using the Attribute Exchange OpenID extension. This parameter will have type "http://www.browser-games-hub.org/schema/openid/profilebox_url.xml" and will contain an anyURI element.

This URL should contain a user ID and a secret key. This key should be unique for every game and user and can be updated without further notice. This means that your game should check if the URL is updated every time the user logs in, so not only on registration!

Data

The Profile Box API must receive all data in POST values.

The calls must contain the following fields:

  • profilebox_xhtml must contain the information to be set in the profile box = XHTML.
Personal tools