步 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>