Hello,
I have trouble when trying to post a new work to ORCID using the API (following
http://support.orcid.org/knowledgebase/articles/171893-tutorial-add-works-with-curl ). I get 403 Access denied error.
So far I am successfully obtaining the access token following
http://support.orcid.org/knowledgebase/articles/179969-methods-to-generate-an-access-token-for-testing and when I use it along with the following command:
curl -H 'Content-Type: application/orcid+xml' -H 'Authorization: Bearer <my token>' -d '@/Documents/new_work.xml' -X POST 'https://api.sandbox.orcid.org/v1.1/<my ORCID>/orcid-works'
everything works fine - the new work is posted. This means that the problem is in my code but still it is a little weird because I believe I am modeling the exact same curl command in python pycurl (urllib2 and requests libraries were used but with the same result of access denied).
I was wondering if you had came across to a similar problem... Could it be a certificate problem ?
I am applying more or less the entire push-to-orcid function -
http://pastebin.com/cm7CNHYTI am ready to provide the responses from the server for every step taken (setting cookies, requesting authorization, granting authorization, getting access token) containing the session ids, client id, secret code and access token if requested.
Best regards,
Martin