>

JavaScript API

List of methods:

Example

<script src="[api_server]bundles/gamesiteapi/js/gsapi.js" type="text/javascript"></script>

<script type="text/javascript">
    var users = '[{"id":"123","nickname":"User123"},{"id":"123","nickname":"User345"}]';
</script>

<input onclick="GSAPI.UI.showInvite('Default invite text', users, 'customAttr=vValue');" type="button" value="Invite">
<input onclick="GSAPI.UI.showMailNotification('Default mail notification text', users, 'customAttr=vValue');" type="button" value="Mail notification">
<input onclick="GSAPI.UI.showPayment();" type="button" value="Show Payment">
<input onclick="GSAPI.UI.showHelp();" type="button" value="Show Help">
Помощь