Difference between revisions of "MOR API phonebook edit"

From Kolmisoft Wiki
Jump to navigationJump to search
m
Line 16: Line 16:
** u - username to login. '''Required'''.
** u - username to login. '''Required'''.
** p - password to login. '''Required'''.
** p - password to login. '''Required'''.
** hash - 632667547e7cd3e0466547863e1207a8c0c0c549
** [[MOR API hash construction | hash]] - SHA1 hash constructed using '''params''' and '''API_Secret_Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''.
** number
** number
** name
** name

Revision as of 13:23, 22 December 2011

This functionality is available from MOR 11


MOR API

Phonebook edit






  • Call: /api/phonebook_edit
  • Methods: POST, GET(if allowed, not recomended)
  • Params:
    • phonebook_id - Phonebook ID in MOR database. Required.
    • u - username to login. Required.
    • p - password to login. Required.
    • hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required.
    • number
    • name
    • speeddial
  • Returns:
    • Success
      • <status>Phonebook saved</status>
    • Errors:
      • <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>Dont be so smart</error> - User with UNIQUEHASH not found or params id not send. Enter correct id.