I'm using the following CURL to download file from Assembla into the local system. In Curl command, I'm giving both the API key and secret as access token. But it doesn't work. Let me know how I can download the file using CURL.
Following is the curl I'm using to download file:
curl -H "X-Api-Key:19f66f38efcdbc" -H "X-Api-Secret:c3eb3856fd08b37f58f490s013wred1" --insecure https://www.assembla.com/code/software-dept/Release/Test.apk?_format=raw
Following is the Output that I get when I run the above CURL:
$ curl -H "X-Api-Key:19f66f38efcdbc" -H "X-Api-Secret:c3eb3856fd08b37f58f490s013wred1" https://www.assembla.com/code/software-dept/Release/Test.apk
<html><body>You are being <a href="https://www.assembla.com/login">redirected</a
>.</body></html>
Thanks in Advance