SlideShare una empresa de Scribd logo
1 de 16
Descargar para leer sin conexión
orcid.org
beyond what is ORCID...
...using the API
2016 february 15
laura paglione
technical director, ORCID
L.Paglione@ORCID.org
http://orcid.org/0000-0003-3188-6273
Contact Info: p. +1-301-500-2139 a. 10411 Motor City Drive, Suite 750, Bethesda, MD 20817 USA
orcid.org 2
the other stuff that has to happen
•  communications
•  rollout timing
•  evangelism – encouraging use
...can be much harder & more time consuming than using the API
let’s not get ahead of ourselves...
PHOTO: 3/2 nuts © M.G. Kafkas
https://flic.kr/p/4XytpS
orcid.org
basic API flow
ORCID Record
Yes!
Do you have
permission to do what
you want to do?
Get the permission;
store iD and “token”
Read the record or
update the record
No
OAuth
orcid.org 4
API (Application Programming Interface) –
interface that lets one software program “talk”
with another, exchanging data behind the scenes.
An ad, but good basic info about what an API can do:
http://paidpost.nytimes.com/ca-technologies/apis-the-building-
blocks-of-the-app-economy.html
what is an API?
PHOTO: 3/2 nuts © M.G. Kafkas
https://flic.kr/p/4XytpS
orcid.org 5
•  permissions / scopes – your contract with the user
•  the ORCID messages – format of the data exchanged
•  OAuth calls – the permission protocol – how you “execute
the contract”
•  ORCID-specific calls – providing & receiving information
with the registry
the ORCID API in a nutshell
PHOTO: 3/2 nuts © M.G. Kafkas
https://flic.kr/p/4XytpS
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
explaining scopes / permissions
orcid.org
ORCID registry depends on user-based permissions:
Can I...
•  have your iD (/authenticate)
•  interact with the activities on your record
•  read (/activities/read)
•  update (/activities/update)
•  interact with your biographical information
•  read (/person/read)
•  update (/person/update)
what a message looks like
orcid.org
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
the OAuth calls – part 1
orcid.org
Initiate the process – Send the user to a “fancy” URL
https://orcid.org/oauth/authorize? 
client_id=0000-0002-3003-7862& 
response_type=code& 
scope=/activities/read-limited%20/activities/update& 
redirect_uri=https://my.URL.org& 
family_names=Paglione&given_names=Laura&email=l.paglione
%2B2014@orcid.org&orcid=0000-0001-6356-0580
The base URL – displays the screen
who’s asking?
what permission?
where the user goes next
Personalize the
experience
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
what the user sees
orcid.org
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
the OAuth calls – part 2
orcid.org
ORCID sends the user to your redirect, with a code
https://my.URL.org?htA3yE
you...
•  save the code – you need it for the next step
•  display something useful to the user
•  Authorize: thanks for your permission!
•  Deny: are you sure you don’t want to give permission?
The magic code
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
the OAuth calls – part 3a: the call
orcid.org
use the code to gain access using the ORCID API
https://api.orcid.org/oauth/token
HEADER: accept:application/json
DATA:
client_id=0000-0002-3003-7862
client_secret=f6ffa224-dc28-4c51-8c9e-ae4b86f61bc3
grant_type=authorization_code
code=htA3yE
redirect_uri=https%3A%2F%2Fmy.URL.org
our API calls always looks
like URLs (RESTful)
what format?
The magic code
confirming that you are
the right one to get this
information
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
the OAuth calls – part 3b: the result
orcid.org
the result of the call
"access_token” : "6710dfee-6aab-445b-a266-205dd9085273",
"token_type” : "bearer",
"expires_in” : 631138518,
"scope” : "/activities/read-limited /activities/update",
"orcid” : "0000-0001-6356-0580",
"name” : "Laura Paglione”
store the access token and iD
when permission expires (in seconds)
your permission – executed contract
iD & name for the person
who gave permission
What you can do
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
ORCID-specific calls
orcid.org
•  Read data: GET
•  Add data: POST
•  Update data: PUT
BASE URL: https://api.orcid.org/0000-0000-0000-0000
HEADERS:
accept:application/json (reading) content-type:application/json (adding /updating)
Authorization: Bearer 6710dfee-6aab-445b-a266-205dd9085273
DATA (if adding or updating):
the file location=@file_location_name
Modifiers:
/works
/update
data format
Access token from before
PHOTO: electronic circuit board
www.flickr.com/photos/creative_stock/5227842611
but wait... there’s more
orcid.org
•  Error handling
•  API updates
•  about 1x/year
•  supported versions
•  release candidates
•  deprecated versions
resources
PHOTO: Stairway to somewhere © Jonathan Fenton
https://flic.kr/p/7Guxgu
member resources (includes planning & communication resources)
http://members.orcid.org
API documentation
http://members.orcid.org/api
getting authenticated ORCID iDs
http://members.orcid.org/api/tutorial-retrieve-orcid-id-curl-v12-and-earlier
vendors that support ORCID iDs
http://members.orcid.org/publisher-tools
getting help at ORCID
http://orcid.org/help/contact-us
• 
• 
• 
• 
• 
thank you
● http://orcid.org
● BLOG: http://orcid.org/about/news
● TWITTER: @ORCID_Org
orcid.org

Más contenido relacionado

Destacado

Destacado (14)

Around the World with ORCID (D. Wright, M. Buys, J. Brown, L. Pessoa, N. Miya...
Around the World with ORCID (D. Wright, M. Buys, J. Brown, L. Pessoa, N. Miya...Around the World with ORCID (D. Wright, M. Buys, J. Brown, L. Pessoa, N. Miya...
Around the World with ORCID (D. Wright, M. Buys, J. Brown, L. Pessoa, N. Miya...
 
Getting Connected with the ORCID API (A. Wrigley)
Getting Connected with the ORCID API (A. Wrigley)Getting Connected with the ORCID API (A. Wrigley)
Getting Connected with the ORCID API (A. Wrigley)
 
Sharing information between systems: The ORCID API (Alainna Wrigley)
Sharing information between systems: The ORCID API (Alainna Wrigley)Sharing information between systems: The ORCID API (Alainna Wrigley)
Sharing information between systems: The ORCID API (Alainna Wrigley)
 
Collect and Connect: Integrating ORCID into research workflows (M. Buys)
Collect and Connect: Integrating ORCID into research workflows (M. Buys)Collect and Connect: Integrating ORCID into research workflows (M. Buys)
Collect and Connect: Integrating ORCID into research workflows (M. Buys)
 
Lightning Talk Session - Connecting Altmetric (K. Capretta)
Lightning Talk Session - Connecting Altmetric (K. Capretta)Lightning Talk Session - Connecting Altmetric (K. Capretta)
Lightning Talk Session - Connecting Altmetric (K. Capretta)
 
ORCID in platform research lifecycle products -Elsevier (C. Shillum)
ORCID in platform research lifecycle products -Elsevier (C. Shillum)ORCID in platform research lifecycle products -Elsevier (C. Shillum)
ORCID in platform research lifecycle products -Elsevier (C. Shillum)
 
ORCID identifiers in research workflows - ACM (B. Rous)
ORCID identifiers in research workflows - ACM (B. Rous)ORCID identifiers in research workflows - ACM (B. Rous)
ORCID identifiers in research workflows - ACM (B. Rous)
 
Why, What & How: The role of ORCID in Research Management (M. Buys)
Why, What & How: The role of ORCID in Research Management (M. Buys)Why, What & How: The role of ORCID in Research Management (M. Buys)
Why, What & How: The role of ORCID in Research Management (M. Buys)
 
ORCID as a Community Initiative (Miyairi)
ORCID as a Community Initiative (Miyairi)ORCID as a Community Initiative (Miyairi)
ORCID as a Community Initiative (Miyairi)
 
ORCID @ Hong Kong Polytechnic University (J. Chia)
ORCID @ Hong Kong Polytechnic University (J. Chia)ORCID @ Hong Kong Polytechnic University (J. Chia)
ORCID @ Hong Kong Polytechnic University (J. Chia)
 
Semantics analysis ppt
Semantics analysis pptSemantics analysis ppt
Semantics analysis ppt
 
ORCID Implementations with University RIM Systems (The University of Sydney, ...
ORCID Implementations with University RIM Systems (The University of Sydney, ...ORCID Implementations with University RIM Systems (The University of Sydney, ...
ORCID Implementations with University RIM Systems (The University of Sydney, ...
 
Enabling Innovation Using Identifiers: moving from metrics to map (O. Jefferson)
Enabling Innovation Using Identifiers: moving from metrics to map (O. Jefferson)Enabling Innovation Using Identifiers: moving from metrics to map (O. Jefferson)
Enabling Innovation Using Identifiers: moving from metrics to map (O. Jefferson)
 
Discourse Analysis ppt
Discourse Analysis pptDiscourse Analysis ppt
Discourse Analysis ppt
 

Similar a The ORCID API (L. Paglione)

The Jisc UK ORCID use cases and API workshop
The Jisc UK ORCID use cases and API workshopThe Jisc UK ORCID use cases and API workshop
The Jisc UK ORCID use cases and API workshop
Jisc
 

Similar a The ORCID API (L. Paglione) (20)

Working with the ORCID API (L. Paglione)
Working with the ORCID API (L. Paglione) Working with the ORCID API (L. Paglione)
Working with the ORCID API (L. Paglione)
 
Beyond what is ORCID... using the API (L. Paglione)
Beyond what is ORCID... using the API (L. Paglione)Beyond what is ORCID... using the API (L. Paglione)
Beyond what is ORCID... using the API (L. Paglione)
 
ORCID API in Action (A. Wrigley)
ORCID API in Action (A. Wrigley)ORCID API in Action (A. Wrigley)
ORCID API in Action (A. Wrigley)
 
ORCID Collect & Connect: understanding integrations and the API (M. Buys)
ORCID Collect & Connect: understanding integrations and the API (M. Buys)ORCID Collect & Connect: understanding integrations and the API (M. Buys)
ORCID Collect & Connect: understanding integrations and the API (M. Buys)
 
Webinar: API Extravaganza! Combining Google Analytics and ORCID API
Webinar: API Extravaganza! Combining Google Analytics and ORCID APIWebinar: API Extravaganza! Combining Google Analytics and ORCID API
Webinar: API Extravaganza! Combining Google Analytics and ORCID API
 
Building Encrypted APIs with HTTPS and Paillier
Building Encrypted APIs with HTTPS and PaillierBuilding Encrypted APIs with HTTPS and Paillier
Building Encrypted APIs with HTTPS and Paillier
 
ORCID API in action (A. Wrigley)
ORCID API in action (A. Wrigley)ORCID API in action (A. Wrigley)
ORCID API in action (A. Wrigley)
 
PyConWeb - 2019 Auditing websites & apps for privacy leaks.
PyConWeb - 2019 Auditing websites & apps for privacy leaks.PyConWeb - 2019 Auditing websites & apps for privacy leaks.
PyConWeb - 2019 Auditing websites & apps for privacy leaks.
 
SIngle Sign On with Keycloak
SIngle Sign On with KeycloakSIngle Sign On with Keycloak
SIngle Sign On with Keycloak
 
OSDC 2019 | Single Sign On with Keycloak: why and how by Julien Pivotto
OSDC 2019 | Single Sign On with Keycloak: why and how by Julien PivottoOSDC 2019 | Single Sign On with Keycloak: why and how by Julien Pivotto
OSDC 2019 | Single Sign On with Keycloak: why and how by Julien Pivotto
 
The Jisc UK ORCID use cases and API workshop
The Jisc UK ORCID use cases and API workshopThe Jisc UK ORCID use cases and API workshop
The Jisc UK ORCID use cases and API workshop
 
Implementing OpenID for Your Social Networking Site
Implementing OpenID for Your Social Networking SiteImplementing OpenID for Your Social Networking Site
Implementing OpenID for Your Social Networking Site
 
Holt "Working with Scholarly APIs: A NISO Training Series, Session Two: ORCID"
Holt "Working with Scholarly APIs: A NISO Training Series, Session Two: ORCID"Holt "Working with Scholarly APIs: A NISO Training Series, Session Two: ORCID"
Holt "Working with Scholarly APIs: A NISO Training Series, Session Two: ORCID"
 
CIS14: Securing the Internet of Things with Open Standards
CIS14: Securing the Internet of Things with Open StandardsCIS14: Securing the Internet of Things with Open Standards
CIS14: Securing the Internet of Things with Open Standards
 
ORCID API
ORCID APIORCID API
ORCID API
 
How to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxHow to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptx
 
OpenID Connect
OpenID ConnectOpenID Connect
OpenID Connect
 
OpenID and OAuth
OpenID and OAuthOpenID and OAuth
OpenID and OAuth
 
Pentesting Android Applications
Pentesting Android ApplicationsPentesting Android Applications
Pentesting Android Applications
 
ORCID API Workshop OR2015
ORCID API Workshop OR2015ORCID API Workshop OR2015
ORCID API Workshop OR2015
 

Más de ORCID, Inc

Más de ORCID, Inc (20)

ORCID Overview: Why your Lifelong Identifier is Important in the Digital Age ...
ORCID Overview: Why your Lifelong Identifier is Important in the Digital Age ...ORCID Overview: Why your Lifelong Identifier is Important in the Digital Age ...
ORCID Overview: Why your Lifelong Identifier is Important in the Digital Age ...
 
Identifying Springer's Author (with ORCID iD) on SpringerLink (H. Aziz)
Identifying Springer's Author (with ORCID iD) on SpringerLink (H. Aziz)Identifying Springer's Author (with ORCID iD) on SpringerLink (H. Aziz)
Identifying Springer's Author (with ORCID iD) on SpringerLink (H. Aziz)
 
ORCID at UniKL (P. Hamzah)
ORCID at UniKL (P. Hamzah)ORCID at UniKL (P. Hamzah)
ORCID at UniKL (P. Hamzah)
 
ORCID Integration Videos
ORCID Integration VideosORCID Integration Videos
ORCID Integration Videos
 
ORCID as a Community Initiative (N. Miyairi)
ORCID as a Community Initiative (N. Miyairi)ORCID as a Community Initiative (N. Miyairi)
ORCID as a Community Initiative (N. Miyairi)
 
Introduction and Welcome to the 2017 ORCID Malaysia Workshop (N. Miyairi)
Introduction and Welcome to the 2017 ORCID Malaysia Workshop (N. Miyairi)Introduction and Welcome to the 2017 ORCID Malaysia Workshop (N. Miyairi)
Introduction and Welcome to the 2017 ORCID Malaysia Workshop (N. Miyairi)
 
MyRID: ORCID Integration in Malaysia (T. Dharmalingam)
MyRID: ORCID Integration in Malaysia (T. Dharmalingam)MyRID: ORCID Integration in Malaysia (T. Dharmalingam)
MyRID: ORCID Integration in Malaysia (T. Dharmalingam)
 
Spreading the ORCID Word: ORCID Communications Webinar (2016.12)
Spreading the ORCID Word: ORCID Communications Webinar (2016.12)Spreading the ORCID Word: ORCID Communications Webinar (2016.12)
Spreading the ORCID Word: ORCID Communications Webinar (2016.12)
 
ORCID @ Khalifa University
ORCID @ Khalifa UniversityORCID @ Khalifa University
ORCID @ Khalifa University
 
ORCID Integration with Institutional Repositories (D. Grenz)
ORCID Integration with Institutional Repositories (D. Grenz)ORCID Integration with Institutional Repositories (D. Grenz)
ORCID Integration with Institutional Repositories (D. Grenz)
 
Research in a world where machines read (M. Buys)
Research in a world where machines read (M. Buys)Research in a world where machines read (M. Buys)
Research in a world where machines read (M. Buys)
 
Benefits to researchers who use ORCID (P. Purnell)
Benefits to researchers who use ORCID (P. Purnell)Benefits to researchers who use ORCID (P. Purnell)
Benefits to researchers who use ORCID (P. Purnell)
 
Research Management & Publishing (M. Jagerhorn)
Research Management & Publishing (M. Jagerhorn)Research Management & Publishing (M. Jagerhorn)
Research Management & Publishing (M. Jagerhorn)
 
ORCID overview: why your lifelong identifier is important in the digital age ...
ORCID overview: why your lifelong identifier is important in the digital age ...ORCID overview: why your lifelong identifier is important in the digital age ...
ORCID overview: why your lifelong identifier is important in the digital age ...
 
ORCID in the Publishing Workflow (Mochammad Tanzil Multazam)
ORCID in the Publishing Workflow (Mochammad Tanzil Multazam)ORCID in the Publishing Workflow (Mochammad Tanzil Multazam)
ORCID in the Publishing Workflow (Mochammad Tanzil Multazam)
 
What in the World is ORCID? (Haak)
What in the World is ORCID? (Haak)What in the World is ORCID? (Haak)
What in the World is ORCID? (Haak)
 
ORCID Integration Videos
ORCID Integration VideosORCID Integration Videos
ORCID Integration Videos
 
The Latest on ORCID API v2
The Latest on ORCID API v2 The Latest on ORCID API v2
The Latest on ORCID API v2
 
What’s New in ORCID Tech 2016 (Robert Peters)
What’s New in ORCID Tech 2016 (Robert Peters)What’s New in ORCID Tech 2016 (Robert Peters)
What’s New in ORCID Tech 2016 (Robert Peters)
 
ORCID API Perks & Pitfalls
ORCID API Perks & PitfallsORCID API Perks & Pitfalls
ORCID API Perks & Pitfalls
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

The ORCID API (L. Paglione)

  • 1. orcid.org beyond what is ORCID... ...using the API 2016 february 15 laura paglione technical director, ORCID L.Paglione@ORCID.org http://orcid.org/0000-0003-3188-6273 Contact Info: p. +1-301-500-2139 a. 10411 Motor City Drive, Suite 750, Bethesda, MD 20817 USA
  • 2. orcid.org 2 the other stuff that has to happen •  communications •  rollout timing •  evangelism – encouraging use ...can be much harder & more time consuming than using the API let’s not get ahead of ourselves... PHOTO: 3/2 nuts © M.G. Kafkas https://flic.kr/p/4XytpS
  • 3. orcid.org basic API flow ORCID Record Yes! Do you have permission to do what you want to do? Get the permission; store iD and “token” Read the record or update the record No OAuth
  • 4. orcid.org 4 API (Application Programming Interface) – interface that lets one software program “talk” with another, exchanging data behind the scenes. An ad, but good basic info about what an API can do: http://paidpost.nytimes.com/ca-technologies/apis-the-building- blocks-of-the-app-economy.html what is an API? PHOTO: 3/2 nuts © M.G. Kafkas https://flic.kr/p/4XytpS
  • 5. orcid.org 5 •  permissions / scopes – your contract with the user •  the ORCID messages – format of the data exchanged •  OAuth calls – the permission protocol – how you “execute the contract” •  ORCID-specific calls – providing & receiving information with the registry the ORCID API in a nutshell PHOTO: 3/2 nuts © M.G. Kafkas https://flic.kr/p/4XytpS
  • 6. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 explaining scopes / permissions orcid.org ORCID registry depends on user-based permissions: Can I... •  have your iD (/authenticate) •  interact with the activities on your record •  read (/activities/read) •  update (/activities/update) •  interact with your biographical information •  read (/person/read) •  update (/person/update)
  • 7. what a message looks like orcid.org
  • 8. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 the OAuth calls – part 1 orcid.org Initiate the process – Send the user to a “fancy” URL https://orcid.org/oauth/authorize? client_id=0000-0002-3003-7862& response_type=code& scope=/activities/read-limited%20/activities/update& redirect_uri=https://my.URL.org& family_names=Paglione&given_names=Laura&email=l.paglione %2B2014@orcid.org&orcid=0000-0001-6356-0580 The base URL – displays the screen who’s asking? what permission? where the user goes next Personalize the experience
  • 9. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 what the user sees orcid.org
  • 10. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 the OAuth calls – part 2 orcid.org ORCID sends the user to your redirect, with a code https://my.URL.org?htA3yE you... •  save the code – you need it for the next step •  display something useful to the user •  Authorize: thanks for your permission! •  Deny: are you sure you don’t want to give permission? The magic code
  • 11. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 the OAuth calls – part 3a: the call orcid.org use the code to gain access using the ORCID API https://api.orcid.org/oauth/token HEADER: accept:application/json DATA: client_id=0000-0002-3003-7862 client_secret=f6ffa224-dc28-4c51-8c9e-ae4b86f61bc3 grant_type=authorization_code code=htA3yE redirect_uri=https%3A%2F%2Fmy.URL.org our API calls always looks like URLs (RESTful) what format? The magic code confirming that you are the right one to get this information
  • 12. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 the OAuth calls – part 3b: the result orcid.org the result of the call "access_token” : "6710dfee-6aab-445b-a266-205dd9085273", "token_type” : "bearer", "expires_in” : 631138518, "scope” : "/activities/read-limited /activities/update", "orcid” : "0000-0001-6356-0580", "name” : "Laura Paglione” store the access token and iD when permission expires (in seconds) your permission – executed contract iD & name for the person who gave permission What you can do
  • 13. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 ORCID-specific calls orcid.org •  Read data: GET •  Add data: POST •  Update data: PUT BASE URL: https://api.orcid.org/0000-0000-0000-0000 HEADERS: accept:application/json (reading) content-type:application/json (adding /updating) Authorization: Bearer 6710dfee-6aab-445b-a266-205dd9085273 DATA (if adding or updating): the file location=@file_location_name Modifiers: /works /update data format Access token from before
  • 14. PHOTO: electronic circuit board www.flickr.com/photos/creative_stock/5227842611 but wait... there’s more orcid.org •  Error handling •  API updates •  about 1x/year •  supported versions •  release candidates •  deprecated versions
  • 15. resources PHOTO: Stairway to somewhere © Jonathan Fenton https://flic.kr/p/7Guxgu member resources (includes planning & communication resources) http://members.orcid.org API documentation http://members.orcid.org/api getting authenticated ORCID iDs http://members.orcid.org/api/tutorial-retrieve-orcid-id-curl-v12-and-earlier vendors that support ORCID iDs http://members.orcid.org/publisher-tools getting help at ORCID http://orcid.org/help/contact-us •  •  •  •  •