Home API docs AppMarket integration Login
My apps
Login first

Help & Docs
Settings page
Pricing page
Credits API
Events

How to Decrease/Increase user credits?

When user install your app and buy credits you can decrease or increase them by using this API methods.

Decrease credits

Endpoint URL:
https://api.wobily.com/Api/Apps/DecreaseAppCredits

Http method:
HttpPost

Authentication:
This method require a valid account access token (You recieve account access token from the signed_request parameter in the setting page).

Request:
parameter description required
token account access token True
decrease_number The number of credits to decrease True

Response:
JSON format.
success - true/false
credits - account current credits number.
{success:true,credits:95}

Get credits information

Endpoint URL:
https://api.wobily.com/Api/Apps/GetAppCredits

Http method:
HttpGet

Authentication:
This method require a valid account access token (You recieve account access token from the signed_request parameter in the setting page).

Request:
parameter description required
token account access token True

Response:
JSON format.
success - true/false
credits - account current credits number.
{credits:98}