MOR API phonebook edit

From Kolmisoft Wiki

Jump to: navigation, search


[edit] Description

MOR API Phonebook edit

[edit] Usage

  • Call: /api/phonebook_edit
  • Methods: POST, GET(if allowed, not recomended)

[edit] Parametres

  • phonebook_id - Phonebook ID in MOR database. Required.
  • u - username for authentication. Required.
  • hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required.
  • number
  • name
  • speeddial

[edit] Request

We have phonebook_id = 123, name=phonebook, number=920355666, speeddial=666 and API Secret Key = 456789

We send:

HTML POST: http://<SERVER_IP>/billing/api/phonebook_edit?u=username&phonebook_id=123&name=phonebook&number=920355666&speeddial=666&hash=fe2532c8b6b0a04fa8610bb666614a821f269b85

NOTE that username and password are not included in hash

[edit] Returns


<?xml version="1.0" encoding="UTF-8"?>
   <status>Phonebook saved</status>


  • <error>Phonebook was not saved</error>
    • <message>problem message</message>
  • <error>Phonebook was not found</error> - Phonebook was not found using phonebook_id. Use correct phonebook id.
  • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
  • <error>Access Denied</error> - User with UNIQUEHASH not found or params id not send. Enter correct id.

[edit] See also

Personal tools


Try M2