步驟 5 (共 5)
5.閱讀 ORCID 記錄 (GET)
在編寫和更新信息後 ORCID 記錄,現在是時候使用 GET 方法讀取該記錄上所有內容的摘要了。
在這最後一步中,我們將檢索所有內容的摘要 ORCID 我們之前添加和更新的記錄。 為此,我們將使用 GET 方法並接收記錄摘要的 XML。
返回到 Google Developers OAuth2 Playground 的瀏覽器選項卡。 如果您沒有保持選項卡打開,您可以使用之前保存的 URL 重新初始化會話(在出現的警告上單擊確定)。 或者您可以通過填寫所有相關字段來再次設置呼叫,確保它們看起來像下面的屏幕截圖:
確保 組態 有你的 客戶 ID 和客戶秘密
在 Google Developers OAuth 2 Playground 的第 2 步中,您應該擁有自己的 訪問令牌 填寫
它應該仍然具有之前的令牌,或者您可以從上一個練習中填寫它,如下所示:
在 Google Developers OAuth 3 Playground 的第 2 步中,單擊 添加標題,輸入下面的值,然後單擊 加入 和 關閉
標題名稱: 接受
標頭值: 應用程序/vnd。orcid+XML
第 3 步配置應如下面的屏幕截圖所示:
將 HTTP 方法設置為 GET.
在請求 URI 字段中輸入:
https://api.sandbox.orcid.org/v3.0/0000-XXXX-XXXX-XXXX/record
代替 [ORCID ID]與 iD 對於您的沙盒記錄,格式為 XXXX-XXXX-XXXX-XXXX
注意: 端點 是 URI 末尾的單詞。 在這種情況下,我們正在閱讀 總結 整個記錄,所以我們用 /record 結束 URL,如上所示。
點擊 發送
在 Request/Response 字段中,您應該看到整個記錄的 XML 摘要。 它將顯示記錄中的所有信息,包括您在本教程的第 3 步中添加的從屬關係。 它看起來有點像下面顯示響應第一部分的示例。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<record:record path="/0000-0003-1481-3160" xmlns:internal="http://www.orcid.org/ns/internal" xmlns:education="http://www.orcid.org/ns/education" xmlns:distinction="http://www.orcid.org/ns/distinction" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:membership="http://www.orcid.org/ns/membership" xmlns:error="http://www.orcid.org/ns/error" xmlns:common="http://www.orcid.org/ns/common" xmlns:record="http://www.orcid.org/ns/record" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:keyword="http://www.orcid.org/ns/keyword" xmlns:email="http://www.orcid.org/ns/email" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" xmlns:funding="http://www.orcid.org/ns/funding" xmlns:preferences="http://www.orcid.org/ns/preferences" xmlns:address="http://www.orcid.org/ns/address" xmlns:invited-position="http://www.orcid.org/ns/invited-position" xmlns:work="http://www.orcid.org/ns/work" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:qualification="http://www.orcid.org/ns/qualification" xmlns:service="http://www.orcid.org/ns/service" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:bulk="http://www.orcid.org/ns/bulk" xmlns:research-resource="http://www.orcid.org/ns/research-resource">
<common:orcid-identifier>
<common:uri>https://sandbox.orcid.org/0000-0003-1481-3160</common:uri>
<common:path>0000-0003-1481-3160</common:path>
<common:host>sandbox.orcid.org</common:host>
</common:orcid-identifier>
<preferences:preferences>
<preferences:locale>en</preferences:locale>
</preferences:preferences>
<history:history>
<history:creation-method>Direct</history:creation-method>
<history:submission-date>2017-10-11T08:29:24.481Z</history:submission-date>
<common:last-modified-date>2021-09-14T10:54:02.786Z</common:last-modified-date>
<history:claimed>true</history:claimed>
<history:verified-email>true</history:verified-email>
<history:verified-primary-email>true</history:verified-primary-email>
</history:history>
<person:person path="/0000-0003-1481-3160/person">
<person:name visibility="public" path="0000-0003-1481-3160">
<common:created-date>2017-10-11T08:29:24.481Z</common:created-date>
<common:last-modified-date>2017-10-11T08:29:24.703Z</common:last-modified-date>
<personal-details:given-names>Paula</personal-details:given-names>
<personal-details:family-name>Demain</personal-details:family-name>
</person:name>
<other-name:other-names path="/0000-0003-1481-3160/other-names"/>
<researcher-url:researcher-urls path="/0000-0003-1481-3160/researcher-urls"/>
<email:emails path="/0000-0003-1481-3160/email"/>
<address:addresses path="/0000-0003-1481-3160/address"/>
<keyword:keywords path="/0000-0003-1481-3160/keywords"/>
<external-identifier:external-identifiers path="/0000-0003-1481-3160/external-identifiers"/>
</person:person>
<activities:activities-summary path="/0000-0003-1481-3160/activities">
<common:last-modified-date>2021-09-14T10:53:56.813Z</common:last-modified-date>
<activities:distinctions path="/0000-0003-1481-3160/distinctions"/>
<activities:educations path="/0000-0003-1481-3160/educations">
<common:last-modified-date>2021-09-14T10:53:56.813Z</common:last-modified-date>
<activities:affiliation-group>
<common:last-modified-date>2021-09-14T10:53:56.813Z</common:last-modified-date>
<common:external-ids/>
<education:education-summary put-code="28758" display-index="1" path="/0000-0003-1481-3160/education/28758" visibility="public">
<common:created-date>2017-10-11T08:30:52.610Z</common:created-date>
<common:last-modified-date>2021-09-14T10:53:56.813Z</common:last-modified-date>
<common:source>
<common:source-orcid>
<common:uri>https://sandbox.orcid.org/0000-0003-1481-3160</common:uri>
<common:path>0000-0003-1481-3160</common:path>
<common:host>sandbox.orcid.org</common:host>
</common:source-orcid>
<common:source-name>Paula Demain</common:source-name>
</common:source>
<common:organization>
<common:name>ORCID</common:name>
<common:address>
<common:city>Bethesda</common:city>
<common:region>MD</common:region>
<common:country>US</common:country>
</common:address>
<common:disambiguated-organization>
<common:disambiguated-organization-identifier>385488</common:disambiguated-organization-identifier>