curl -H "X-Api-Key: my_key" -H "X-Api-Secret: my_secret" https://api.assembla.com/v1/user/mentions.json
https://my_key: my_secret@api.assembla.com/v1/user/mentions.json
Am I missing something? I believe I am following the syntax in the assembla api docs.
Thanks,
Marcel
--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Marcel,you can’t pass credentials via Basic auth - the only way to use API key/secret is via headers. So basically you can’t perform API requests using a plain browser. Hope this makes things clearer.Regards,Stanislav
On Apr 28, 2017, at 21:06, mar...@bluerocket.us wrote:
Hello there,I am attempting to request some data from the Assembla API programmatically.When I run the following CURL command, I am able to have the correct data returned to me in the terminal.curl -H "X-Api-Key: my_key" -H "X-Api-Secret: my_secret" https://api.assembla.com/v1/user/mentions.jsonHowever, when I try to hit that same endpoint from my backend using the URL below, I get <response is: {"error"=>"invalid_auth", "error_description"=>"Please provide authentication data (API key/secret pair or a valid access token)"}>
Am I missing something? I believe I am following the syntax in the assembla api docs.Thanks,Marcel
--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-dev+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.