I am evaluating the Aspose REST API, and would like to use it with some different languages than you currently offer for SDKs and examples in the documentation. I’ve been testing for now with just a simple bash script making use of curl. I’m attempting to get usage for the current period at
http://api.aspose.com/1.1/usage/currentPeriod , but I’m getting a 404 Not Found. However, no matter what endpoint I try, I only get 404s.
Could you please check my logic to see if I’m calculating the signature correctly? If it helps, I can send the appSID and key for you to test on your end. Also, since I’m getting 404, are the endpoints not correct?
Here’s my bash script:
#!/bin/bash appsid="myappsid" key="mykey" preurl="[http://api.aspose.com/1.1/usage/currentPeriod?appSID=$appsid](http://api.aspose.com/1.1/usage/currentPeriod?appSID=%24appsid)" sha=$(echo -n $preurl | openssl dgst -sha1 -hmac $key | sed -e “s/^.*= //”) curl -G -H “Accept: application/xml” “$preurl” --data-urlencode “signature=$sha”
The other language I’m testing with is getting a 404 as well, so either my signature calculation is wrong, or the endpoints are wrong. Any help you can provide is welcomed.