How to calculate signature for API calls that accept multiple input values?

By vineet

The Article and the Source API calls can accept multiple input values in the same API call. You provide each value as a separate name value pair.

For e.g., if you are trying to call artice_getQuotes with 5 article IDs A, B, C, D and E - you provide article_id=A&article_id=B&article_id=C&article_id=D&article_id=E in the request.

The core input to calculate the signature is formulated by alphabetically sorting and then concatenating all the input values. In the case above, signature would be:

signature = md5(accesskey + sharedsecret + 'ABCDE')

 

Filed Under: