Calling methods that do not need authorization
Calls to all edocr methods must be signed. The default signature method supported by edocr is HMAC-SHA1.
oauth_consumer_key: The consumer key of your application
method: The name of the API method to be called. The complete list of edocr API methods is given here.
oauth_timestamp: The timestamp obtained from your system clock. Your timestamp should not exceed the timestamp set on our server by more than 5 minutes.
oauth_signature: All the requests to edocr API methods must be signed. The default signature method supported by edocr is HMAC-SHA1. Guidelines to sign a request in accordance with OAuth is given here.
oauth_signature_method (optional): This parameter must be specified, in case the signature method is not HMAC-SHA1.
< any other required additional parameter for the particular API method >
Example request :
The response will be in the following format.
1. Obtain API key
The consumer can avail API key and secret (consumer-key and consumer-secret) by applying for API keys here. The consumer's API keys will be listed under 'API keys' tab in the user's profile page.2. Call API method
An API request should contain the following parameters.
API call endpoint : http://www.edocr.com/api/echo_api
Example request :
http://www.edocr.com/api/echo_api?docid=4424&method=edocr.getDocUserRating&oauth_consumer_key=4c12fc3ff1adab2c32c657e80008ce88&oauth_timestamp=1231226978&oauth_signature=4O1zM2KjNG24EoR25d3LnQSirZ8=
The response will be in the following format.
{"status":"ok","stars":4}