please specify version number

53 views
Skip to first unread message

Musaddique J Sanderwale

unread,
Oct 4, 2016, 6:04:23 AM10/4/16
to ORCID API Users
I am trying ti integrate orcId using public apis.

first i am hitting below url


but i am getting error

1.2 Please specify a version number (1.2 or higher) : null for uri: http://pub.orcid.org/orcid-pub-web/oauth/authorize?client_id=<client_key>&response_type=code&scope=/authenticate&redirect_uri=http://peren.com:8080/Spring_Security/orcid/callback

please help me for this

thanks
Musaddique

Wilmers, Catalina

unread,
Oct 4, 2016, 11:35:45 AM10/4/16
to Musaddique J Sanderwale, ORCID API Users
Hi,

In the URL for the authorize page, you don't need to specify that it is the public API, as the authorization process is the same for both APIs. If you change your URL to remove "pub" it should work as expected:

https://orcid.org/oauth/authorize?client_id=<client_key>&response_type=code&scope=/authenticate&redirect_uri=http://peren.com:8080/Spring_Security/orcid/callback

You also won't need to specify the public API when exchanging the authorization code, you only need to include "pub" when making the call to read the record.

Best,
-Catalina

--
You received this message because you are subscribed to the Google Groups "ORCID API Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orcid-api-users+unsubscribe@googlegroups.com.
To post to this group, send email to orcid-api-users@googlegroups.com.
Visit this group at https://groups.google.com/group/orcid-api-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages