MOR API user balance update

From Kolmisoft Wiki
Revision as of 07:13, 5 May 2011 by Vitalija (talk | contribs) (Created page with '''This functionality is available from MOR 10'' MOR API Retrieves list of calls in selected time period for some user/device <br><br> ---- <br…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This functionality is available from MOR 10


MOR API

Retrieves list of calls in selected time period for some user/device






  • Call: /api/change_user_balance
  • Methods: POST, GET(if allowed, not recomended)
  • Params:
    • user_id - Users ID in MOR database, whose balance we want to change. Required.
    • u - username to login. Required.
    • p - password to login. Required.
    • balance - new user balance. Required.
    • hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required.
  • Returns:
    • Errors:
      • <error>User was not found</error> - User was not found using user_id. Use correct user_id.
      • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.