rhub
sign in
map people groups locations

  # ? homehelp

Api, Signing Requests

Requests to API services can typically be made by either GET or POST method. Each request must have a signature attached to it, so that Rhub can be sure where a request is coming from.

[edit] Generating the Signature

The signature is made up of each of the request parameters concatenated with colons (:), followed by your developer password. There should also be a key value of "devId" and your developer id. This string is then hashed using the SHA1 algorithm, and added to the list of parameters sent to the request using the key "devSign".

So, say your developer id is "100", and your password is "g4sdg5", and you want to send the following pairs:

You would concatenate them like so:

"100:new:location:New Place"

And then, hashed, it becomes:

"673905bc99731e6fc19bc55d583ff876df6a9a5e"

So if you making a GET request, you would call:

?devId=100&op=new&type=location&name=New+Place&devSign=673905bc99731e6fc19bc55d583ff876df6a9a5e
Retrieved from "http://rhub.net/wiki/Api%2C_Signing_Requests"
Powered by MediaWiki

 

Help! | Console | Getting Started | Sitemap | Search | Feedback | About

Navigation
 
Personal tools

Extra