Starting from version 1078, the API prefix has been changed from hbs to qg. The original prefix hbs is still supported.
API | Description |
|---|---|
Obtains the current settings of a user. The returns contain only the permissions that have been requested. | |
Displays the quick game settings page and returns the setting result. Only the permissions that have been requested will appear on the settings page. |
Obtains the current settings of a user. The returns contain only the permissions that have been requested.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
success | function | No | Callback function triggered upon a successful API call. |
fail | function | No | Callback function triggered upon a failed API call. |
complete | function | No | If a function is passed, it will be called regardless of whether the API call succeeds or fails. |
Parameter | Type | Description |
|---|---|---|
authSetting | object | User authorization result, which returns the permissions that have been enabled by the user. For details, please refer to Parameters in authSetting. |
qg.getSetting({
success : function (res) {
console.log("getSetting success authSetting = " + res.authSetting);
},
fail:function(){
console.log("getSetting fail");
},
complete:function() {
console.log("getSetting complete");
}
}); Displays the quick game settings page and returns the setting result. Only the permissions that have been requested will appear on the settings page.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
success | function | No | Callback function triggered upon a successful API call. |
fail | function | No | Callback function triggered upon a failed API call. |
complete | function | No | If a function is passed, it will be called regardless of whether the API call succeeds or fails. |
Parameter | Type | Description |
|---|---|---|
authSetting | object | User authorization result, which returns the permissions that have been enabled by the user. For details, please refer to Parameters in authSetting. |
qg.openSetting({
success : function (res) {
console.log("openSetting success authSetting = " + res.authSetting);
},
fail:function(){
console.log("openSetting fail");
},
complete:function() {
console.log("openSetting complete");
}
});