User API guide: Difference between revisions

No edit summary
No edit summary
Line 13: Line 13:


You may use [https://simplybook.me/api_example/json-rpc-client.js javascript JSON-RPC-client library] and [https://simplybook.me/api_example/JsonRpcClient.zip php JSON-RPC-client library] from our examples for your own solution development.
You may use [https://simplybook.me/api_example/json-rpc-client.js javascript JSON-RPC-client library] and [https://simplybook.me/api_example/JsonRpcClient.zip php JSON-RPC-client library] from our examples for your own solution development.
==Client API(Company public service)authorization==
<br><br>
<br><br>
==Client API([https://simplybook.me/api/doc#/admin Company public service])authorization==
<br>
'''Authorization from client side code'''<br><br>
'''Authorization from client side code'''<br><br>
Getting the token-key.<br><br>
Getting the token-key.<br><br>
Line 31: Line 31:
},<br>
},<br>
'onerror': function (error) {}<br>
'onerror': function (error) {}<br>
});</nowiki><br>
});</nowiki><br><br>
'''Authorization from server side code'''<br><br>
'''Authorization from server side code'''<br><br>
Getting the token-key.<br><br>
Getting the token-key.<br><br>
Line 46: Line 46:
));</nowiki>
));</nowiki>
<br><br>
<br><br>
==User/Admin API (Company Administration Service) Authorization==
==User/Admin API ([https://simplybook.me/api/doc#/admin Company Administration Service]) Authorization==
'''Authorization from client side code'''<br><br>
<br><br>'''Authorization from client side code'''<br><br>
Getting the token-key.<br><br>
Getting the token-key.<br><br>
  <nowiki>var loginClient = new JSONRpcClient({
  <nowiki>var loginClient = new JSONRpcClient({