orcid_client 0.3.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.env.example +1 -1
- data/Gemfile.lock +85 -81
- data/lib/orcid_client/api.rb +1 -1
- data/lib/orcid_client/base.rb +3 -2
- data/lib/orcid_client/external_identifier.rb +1 -1
- data/lib/orcid_client/notification.rb +1 -1
- data/lib/orcid_client/version.rb +1 -1
- data/lib/orcid_client/work.rb +6 -5
- data/orcid_client.gemspec +3 -3
- data/resources/README.md +131 -0
- data/resources/{common_2.0/common-2.0.xsd → common_2.1/common-2.1.xsd} +2 -2
- data/resources/{common_2.0/samples/common-2.0.xml → common_2.1/samples/common-2.1.xml} +2 -2
- data/resources/{notification_2.0 → notification_2.1}/README.md +10 -10
- data/resources/{notification_2.0/notification-custom-2.0.xsd → notification_2.1/notification-custom-2.1.xsd} +1 -1
- data/resources/{notification_2.0/notification-permission-2.0.xsd → notification_2.1/notification-permission-2.1.xsd} +3 -3
- data/resources/{notification_2.0/samples/notification-custom-2.0.xml → notification_2.1/samples/notification-custom-2.1.xml} +2 -2
- data/resources/{notification_2.0/samples/notification-permission-2.0.xml → notification_2.1/samples/notification-permission-2.1.xml} +2 -2
- data/resources/orcid-error-1.0.xsd +69 -0
- data/resources/{record_2.0 → record_2.1}/README.md +154 -155
- data/resources/{record_2.0/activities-2.0.xsd → record_2.1/activities-2.1.xsd} +6 -6
- data/resources/{record_2.0/address-2.0.xsd → record_2.1/address-2.1.xsd} +1 -1
- data/resources/{record_2.0/bulk-2.0.xsd → record_2.1/bulk-2.1.xsd} +2 -2
- data/resources/{record_2.0/education-2.0.xsd → record_2.1/education-2.1.xsd} +1 -1
- data/resources/{record_2.0/email-2.0.xsd → record_2.1/email-2.1.xsd} +1 -1
- data/resources/{record_2.0/employment-2.0.xsd → record_2.1/employment-2.1.xsd} +1 -1
- data/resources/{record_2.0/error-2.0.xsd → record_2.1/error-2.1.xsd} +0 -0
- data/resources/{record_2.0/funding-2.0.xsd → record_2.1/funding-2.1.xsd} +1 -1
- data/resources/{record_2.0/history-2.0.xsd → record_2.1/history-2.1.xsd} +1 -1
- data/resources/{record_2.0/keyword-2.0.xsd → record_2.1/keyword-2.1.xsd} +1 -1
- data/resources/{record_2.0/other-name-2.0.xsd → record_2.1/other-name-2.1.xsd} +1 -1
- data/resources/{record_2.0/peer-review-2.0.xsd → record_2.1/peer-review-2.1.xsd} +2 -2
- data/resources/{record_2.0/peer-review-guide-v2.0.md → record_2.1/peer-review-guide-v2.1.md} +17 -17
- data/resources/{record_2.0/person-2.0.xsd → record_2.1/person-2.1.xsd} +9 -9
- data/resources/{record_2.0/person-external-identifier-2.0.xsd → record_2.1/person-external-identifier-2.1.xsd} +1 -1
- data/resources/{record_2.0/personal-details-2.0.xsd → record_2.1/personal-details-2.1.xsd} +3 -3
- data/resources/{record_2.0/preferences-2.0.xsd → record_2.1/preferences-2.1.xsd} +1 -1
- data/resources/{record_2.0/record-2.0.xsd → record_2.1/record-2.1.xsd} +11 -11
- data/resources/{record_2.0/researcher-url-2.0.xsd → record_2.1/researcher-url-2.1.xsd} +1 -1
- data/resources/{record_2.0/samples/read_samples/activities-2.0.xml → record_2.1/samples/read_samples/activities-2.1.xml} +12 -12
- data/resources/{record_2.0/samples/read_samples/address-2.0.xml → record_2.1/samples/read_samples/address-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/addresses-2.0.xml → record_2.1/samples/read_samples/addresses-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/biography-2.0.xml → record_2.1/samples/read_samples/biography-2.1.xml} +2 -2
- data/resources/{record_2.0 → record_2.1}/samples/read_samples/bulk-work-error.xml +2 -2
- data/resources/{record_2.0/samples/read_samples/credit-name-2.0.xml → record_2.1/samples/read_samples/credit-name-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/read_samples/education-2.0.xml → record_2.1/samples/read_samples/education-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/education-full-2.0.xml → record_2.1/samples/read_samples/education-full-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/educations-2.0.xml → record_2.1/samples/read_samples/educations-2.1.xml} +4 -4
- data/resources/{record_2.0/samples/read_samples/email-2.0.xml → record_2.1/samples/read_samples/email-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/emails-2.0.xml → record_2.1/samples/read_samples/emails-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/employment-2.0.xml → record_2.1/samples/read_samples/employment-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/employment-full-2.0.xml → record_2.1/samples/read_samples/employment-full-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/employments-2.0.xml → record_2.1/samples/read_samples/employments-2.1.xml} +4 -4
- data/resources/{record_2.0/samples/read_samples/error-2.0.xml → record_2.1/samples/read_samples/error-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/read_samples/external-identifier-2.0.xml → record_2.1/samples/read_samples/external-identifier-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/external-identifiers-2.0.xml → record_2.1/samples/read_samples/external-identifiers-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/funding-2.0.xml → record_2.1/samples/read_samples/funding-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/funding-full-2.0.xml → record_2.1/samples/read_samples/funding-full-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/fundings-2.0.xml → record_2.1/samples/read_samples/fundings-2.1.xml} +4 -4
- data/resources/{record_2.0/samples/read_samples/history-2.0.xml → record_2.1/samples/read_samples/history-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/keyword-2.0.xml → record_2.1/samples/read_samples/keyword-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/keywords-2.0.xml → record_2.1/samples/read_samples/keywords-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/name-2.0.xml → record_2.1/samples/read_samples/name-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/read_samples/other-name-2.0.xml → record_2.1/samples/read_samples/other-name-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/other-names-2.0.xml → record_2.1/samples/read_samples/other-names-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/peer-review-2.0.xml → record_2.1/samples/read_samples/peer-review-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/peer-review-full-2.0.xml → record_2.1/samples/read_samples/peer-review-full-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/peer-reviews-2.0.xml → record_2.1/samples/read_samples/peer-reviews-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/person-2.0.xml → record_2.1/samples/read_samples/person-2.1.xml} +7 -7
- data/resources/{record_2.0/samples/read_samples/personal-details-2.0.xml → record_2.1/samples/read_samples/personal-details-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/preferences-2.0.xml → record_2.1/samples/read_samples/preferences-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/read_samples/record-2.0.xml → record_2.1/samples/read_samples/record-2.1.xml} +14 -14
- data/resources/{record_2.0/samples/read_samples/researcher-url-2.0.xml → record_2.1/samples/read_samples/researcher-url-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/researcher-urls-2.0.xml → record_2.1/samples/read_samples/researcher-urls-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/search-2.0.xml → record_2.1/samples/read_samples/search-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/read_samples/work-2.0.xml → record_2.1/samples/read_samples/work-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/work-full-2.0.xml → record_2.1/samples/read_samples/work-full-2.1.xml} +3 -3
- data/resources/{record_2.0/samples/read_samples/works-2.0.xml → record_2.1/samples/read_samples/works-2.1.xml} +4 -4
- data/resources/{record_2.0/samples/write_sample/address-2.0.xml → record_2.1/samples/write_samples/address-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/bulk-work-2.0.json → record_2.1/samples/write_samples/bulk-work-2.1.json} +0 -0
- data/resources/{record_2.0/samples/write_sample/bulk-work-2.0.xml → record_2.1/samples/write_samples/bulk-work-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/education-2.0.xml → record_2.1/samples/write_samples/education-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/employment-2.0.xml → record_2.1/samples/write_samples/employment-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/external-identifier-2.0.xml → record_2.1/samples/write_samples/external-identifier-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/funding-2.0.xml → record_2.1/samples/write_samples/funding-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/keyword-2.0.xml → record_2.1/samples/write_samples/keyword-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/other-name-2.0.xml → record_2.1/samples/write_samples/other-name-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/peer-review-full-2.0.xml → record_2.1/samples/write_samples/peer-review-full-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/peer-review-simple-2.0.xml → record_2.1/samples/write_samples/peer-review-simple-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/researcher-url-2.0.xml → record_2.1/samples/write_samples/researcher-url-2.1.xml} +1 -1
- data/resources/{record_2.0/samples/write_sample/work-full-2.0.xml → record_2.1/samples/write_samples/work-full-2.1.xml} +2 -2
- data/resources/{record_2.0/samples/write_sample/work-simple-2.0.xml → record_2.1/samples/write_samples/work-simple-2.1.xml} +1 -1
- data/resources/{record_2.0/search-2.0.xsd → record_2.1/search-2.1.xsd} +1 -1
- data/resources/{record_2.0/work-2.0.xsd → record_2.1/work-2.1.xsd} +2 -2
- data/resources/xml.xsd +286 -0
- data/spec/api_spec.rb +9 -9
- data/spec/author_spec.rb +1 -1
- data/spec/external_identifier_spec.rb +2 -2
- data/spec/fixtures/external_identifier.xml +1 -1
- data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/delete/should_delete_external_identifier.yml +6 -6
- data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/post/should_create_external_identifier.yml +8 -8
- data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/delete/should_delete_notification.yml +11 -15
- data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/get/should_get_notification.yml +10 -15
- data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/post/should_create_notification.yml +48 -57
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/delete/should_delete_work.yml +6 -6
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/get/should_get_works.yml +6 -614
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/post/should_create_work.yml +48 -55
- data/spec/fixtures/vcr_cassettes/OrcidClient/works/put/should_update_work.yml +51 -62
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/data.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_data.yml +41 -50
- data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_item_type_work.yml +51 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/literal.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/multiple_titles.yml +51 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/valid.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/with_ORCID_IDs.yml +55 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/data.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/publication_date.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_ORCID_IDs_for_contributors.yml +55 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_data.yml +41 -52
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_from_DataCite_test_system.yml +41 -60
- data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_type_data-set.yml +51 -52
- data/spec/fixtures/work.xml +1 -1
- data/spec/notification_spec.rb +3 -3
- data/spec/work_spec.rb +16 -17
- metadata +100 -103
data/spec/author_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe OrcidClient, vcr: true do
|
|
12
12
|
|
13
13
|
context "validate_orcid" do
|
14
14
|
it "validate_orcid" do
|
15
|
-
orcid = "
|
15
|
+
orcid = "https://orcid.org/0000-0002-2590-225X"
|
16
16
|
response = subject.validate_orcid(orcid)
|
17
17
|
expect(response).to eq("0000-0002-2590-225X")
|
18
18
|
end
|
@@ -7,13 +7,13 @@ describe OrcidClient::ExternalIdentifier, vcr: true do
|
|
7
7
|
let(:orcid) { "0000-0001-6528-2027" }
|
8
8
|
let(:access_token) { ENV['ACCESS_TOKEN'] }
|
9
9
|
let(:fixture_path) { "spec/fixtures/" }
|
10
|
-
let(:samples_path) { "resources/record_2.
|
10
|
+
let(:samples_path) { "resources/record_2.1/samples/read_samples/" }
|
11
11
|
|
12
12
|
subject { OrcidClient::ExternalIdentifier.new(type: type, value: value, url: url, orcid: orcid, access_token: access_token) }
|
13
13
|
|
14
14
|
describe 'schema' do
|
15
15
|
it 'validates sample' do
|
16
|
-
validation_errors = subject.schema.validate(samples_path + 'external-identifier-2.
|
16
|
+
validation_errors = subject.schema.validate(samples_path + 'external-identifier-2.1.xml').map { |error| error.to_s }
|
17
17
|
expect(validation_errors).to be_empty
|
18
18
|
end
|
19
19
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.
|
2
|
+
<external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.1.xsd">
|
3
3
|
<common:external-id-type>GitHub</common:external-id-type>
|
4
4
|
<common:external-id-value>mfenner</common:external-id-value>
|
5
5
|
<common:external-id-url>https://github.com/mfenner</common:external-id-url>
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.sandbox.orcid.org/v2.
|
5
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/external-identifiers/4833
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Maremma - https://github.com/datacite/maremma
|
11
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
12
12
|
Content-Type:
|
13
13
|
- application/vnd.orcid+xml
|
14
14
|
Accept:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- nginx/1.10.0
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 11 Apr 2018 20:42:38 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
29
29
|
Connection:
|
@@ -43,8 +43,8 @@ http_interactions:
|
|
43
43
|
X-Content-Type-Options:
|
44
44
|
- nosniff
|
45
45
|
body:
|
46
|
-
encoding:
|
46
|
+
encoding: ASCII-8BIT
|
47
47
|
string: ''
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
50
|
-
recorded_with: VCR
|
49
|
+
recorded_at: Wed, 11 Apr 2018 20:42:38 GMT
|
50
|
+
recorded_with: VCR 4.0.0
|
@@ -2,12 +2,12 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.sandbox.orcid.org/v2.
|
5
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/external-identifiers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: |
|
9
9
|
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
-
<external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.
|
10
|
+
<external-identifier:external-identifier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:external-identifier="http://www.orcid.org/ns/external-identifier" visibility="public" xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.1.xsd">
|
11
11
|
<common:external-id-type>GitHub</common:external-id-type>
|
12
12
|
<common:external-id-value>mfenner</common:external-id-value>
|
13
13
|
<common:external-id-url>https://github.com/mfenner</common:external-id-url>
|
@@ -15,7 +15,7 @@ http_interactions:
|
|
15
15
|
</external-identifier:external-identifier>
|
16
16
|
headers:
|
17
17
|
User-Agent:
|
18
|
-
- Maremma - https://github.com/datacite/maremma
|
18
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.orcid+xml
|
21
21
|
Accept:
|
@@ -30,7 +30,7 @@ http_interactions:
|
|
30
30
|
Server:
|
31
31
|
- nginx/1.10.0
|
32
32
|
Date:
|
33
|
-
-
|
33
|
+
- Wed, 11 Apr 2018 20:30:55 GMT
|
34
34
|
Content-Type:
|
35
35
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
36
36
|
Content-Length:
|
@@ -52,10 +52,10 @@ http_interactions:
|
|
52
52
|
X-Content-Type-Options:
|
53
53
|
- nosniff
|
54
54
|
Location:
|
55
|
-
- http://api.sandbox.orcid.org:443/orcid-api-web/v2.
|
55
|
+
- http://api.sandbox.orcid.org:443/orcid-api-web/v2.1/0000-0001-6528-2027/external-identifiers/4833
|
56
56
|
body:
|
57
|
-
encoding:
|
57
|
+
encoding: ASCII-8BIT
|
58
58
|
string: ''
|
59
59
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
recorded_with: VCR
|
60
|
+
recorded_at: Wed, 11 Apr 2018 20:30:55 GMT
|
61
|
+
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/delete/should_delete_notification.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.sandbox.orcid.org/v2.
|
5
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/notification-permission/292000
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Maremma - https://github.com/datacite/maremma
|
11
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
12
12
|
Content-Type:
|
13
13
|
- application/vnd.orcid+xml
|
14
14
|
Accept:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- nginx/1.10.0
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 11 Apr 2018 20:55:14 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
29
29
|
Connection:
|
@@ -43,10 +43,10 @@ http_interactions:
|
|
43
43
|
X-Content-Type-Options:
|
44
44
|
- nosniff
|
45
45
|
body:
|
46
|
-
encoding:
|
46
|
+
encoding: ASCII-8BIT
|
47
47
|
string: |
|
48
48
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
49
|
-
<notification:notification put-code="
|
49
|
+
<notification:notification put-code="292000" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:activities="http://www.orcid.org/ns/activities">
|
50
50
|
<notification:notification-type>permission</notification:notification-type>
|
51
51
|
<notification:authorization-url>
|
52
52
|
<notification:uri>https://sandbox.orcid.org/oauth/authorize?client_id=<ORCID_CLIENT_ID>&response_type=code&scope=/read-limited%20/activities/update%20/person/update&redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:uri>
|
@@ -58,16 +58,12 @@ http_interactions:
|
|
58
58
|
<notification:items>
|
59
59
|
<notification:item>
|
60
60
|
<notification:item-type>work</notification:item-type>
|
61
|
-
<notification:item-name>
|
62
|
-
<
|
63
|
-
<common:external-id-type>DOI</common:external-id-type>
|
64
|
-
<common:external-id-value>10.5281/zenodo.59983</common:external-id-value>
|
65
|
-
</common:external-id>
|
61
|
+
<notification:item-name>Omniauth-Orcid: V.1.1.5</notification:item-name>
|
62
|
+
<notification:external-identifier/>
|
66
63
|
</notification:item>
|
67
64
|
</notification:items>
|
68
|
-
<common:created-date>
|
69
|
-
<common:
|
70
|
-
<common:archived-date>2016-11-26T07:25:16.060Z</common:archived-date>
|
65
|
+
<common:created-date>2018-04-11T20:53:37.948Z</common:created-date>
|
66
|
+
<common:archived-date>2018-04-11T20:55:14.135Z</common:archived-date>
|
71
67
|
<common:source>
|
72
68
|
<common:source-client-id>
|
73
69
|
<common:uri>http://sandbox.orcid.org/client/<ORCID_CLIENT_ID></common:uri>
|
@@ -78,5 +74,5 @@ http_interactions:
|
|
78
74
|
</common:source>
|
79
75
|
</notification:notification>
|
80
76
|
http_version:
|
81
|
-
recorded_at:
|
82
|
-
recorded_with: VCR
|
77
|
+
recorded_at: Wed, 11 Apr 2018 20:55:14 GMT
|
78
|
+
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.sandbox.orcid.org/v2.
|
5
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/notification-permission/292000
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Maremma - https://github.com/datacite/maremma
|
11
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
12
12
|
Content-Type:
|
13
13
|
- application/vnd.orcid+xml
|
14
14
|
Accept:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- nginx/1.10.0
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 11 Apr 2018 20:55:13 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
29
29
|
Connection:
|
@@ -43,10 +43,10 @@ http_interactions:
|
|
43
43
|
X-Content-Type-Options:
|
44
44
|
- nosniff
|
45
45
|
body:
|
46
|
-
encoding:
|
46
|
+
encoding: ASCII-8BIT
|
47
47
|
string: |
|
48
48
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
49
|
-
<notification:notification put-code="
|
49
|
+
<notification:notification put-code="292000" xmlns:internal="http://www.orcid.org/ns/internal" 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:education="http://www.orcid.org/ns/education" xmlns:work="http://www.orcid.org/ns/work" xmlns:deprecated="http://www.orcid.org/ns/deprecated" xmlns:other-name="http://www.orcid.org/ns/other-name" xmlns:history="http://www.orcid.org/ns/history" xmlns:employment="http://www.orcid.org/ns/employment" xmlns:error="http://www.orcid.org/ns/error" xmlns:notification="http://www.orcid.org/ns/notification" xmlns:common="http://www.orcid.org/ns/common" xmlns:person="http://www.orcid.org/ns/person" xmlns:activities="http://www.orcid.org/ns/activities" xmlns:record="http://www.orcid.org/ns/record" xmlns:researcher-url="http://www.orcid.org/ns/researcher-url" xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:personal-details="http://www.orcid.org/ns/personal-details" xmlns:bulk="http://www.orcid.org/ns/bulk" 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">
|
50
50
|
<notification:notification-type>permission</notification:notification-type>
|
51
51
|
<notification:authorization-url>
|
52
52
|
<notification:uri>https://sandbox.orcid.org/oauth/authorize?client_id=<ORCID_CLIENT_ID>&response_type=code&scope=/read-limited%20/activities/update%20/person/update&redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:uri>
|
@@ -58,16 +58,11 @@ http_interactions:
|
|
58
58
|
<notification:items>
|
59
59
|
<notification:item>
|
60
60
|
<notification:item-type>work</notification:item-type>
|
61
|
-
<notification:item-name>
|
62
|
-
<common:external-id
|
63
|
-
<common:external-id-type>DOI</common:external-id-type>
|
64
|
-
<common:external-id-value>10.5281/zenodo.59983</common:external-id-value>
|
65
|
-
</common:external-id>
|
61
|
+
<notification:item-name>Omniauth-Orcid: V.1.1.5</notification:item-name>
|
62
|
+
<common:external-id/>
|
66
63
|
</notification:item>
|
67
64
|
</notification:items>
|
68
|
-
<common:created-date>
|
69
|
-
<common:sent-date>2016-11-26T07:25:35.313Z</common:sent-date>
|
70
|
-
<common:archived-date>2016-11-26T07:25:16.060Z</common:archived-date>
|
65
|
+
<common:created-date>2018-04-11T20:53:37.948Z</common:created-date>
|
71
66
|
<common:source>
|
72
67
|
<common:source-client-id>
|
73
68
|
<common:uri>http://sandbox.orcid.org/client/<ORCID_CLIENT_ID></common:uri>
|
@@ -78,5 +73,5 @@ http_interactions:
|
|
78
73
|
</common:source>
|
79
74
|
</notification:notification>
|
80
75
|
http_version:
|
81
|
-
recorded_at:
|
82
|
-
recorded_with: VCR
|
76
|
+
recorded_at: Wed, 11 Apr 2018 20:55:13 GMT
|
77
|
+
recorded_with: VCR 4.0.0
|
data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/post/should_create_notification.yml
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://app.datacite.org/prefixes/10.5281
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Maremma - https://github.com/datacite/maremma
|
11
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
12
12
|
Accept:
|
13
13
|
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
14
14
|
response:
|
@@ -16,56 +16,45 @@ http_interactions:
|
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
Access-Control-Allow-Methods:
|
22
|
-
- GET, POST, OPTIONS
|
23
|
-
Access-Control-Allow-Origin:
|
24
|
-
- "*"
|
25
|
-
Access-Control-Max-Age:
|
26
|
-
- '1728000'
|
27
|
-
Cache-Control:
|
28
|
-
- max-age=0, private, must-revalidate
|
19
|
+
Date:
|
20
|
+
- Wed, 11 Apr 2018 20:53:37 GMT
|
29
21
|
Content-Type:
|
30
22
|
- application/vnd.api+json; charset=utf-8
|
31
|
-
|
32
|
-
-
|
33
|
-
Etag:
|
34
|
-
- W/"0411b3916b13b0c38e2c133d6e9905e2"
|
35
|
-
Server:
|
36
|
-
- openresty/1.11.2.2
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
37
25
|
Status:
|
38
26
|
- 200 OK
|
27
|
+
X-Anonymous-Consumer:
|
28
|
+
- 'true'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
39
31
|
Vary:
|
40
|
-
- Accept-Encoding
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Powered-By:
|
46
|
-
- Phusion Passenger 5.1.4
|
32
|
+
- Accept-Encoding, Origin
|
47
33
|
X-Request-Id:
|
48
|
-
-
|
34
|
+
- a993096e-4a34-47aa-83f8-2dd75d5f9670
|
35
|
+
Etag:
|
36
|
+
- W/"3b41a01c57187b7335cf5546198aa22b"
|
49
37
|
X-Runtime:
|
50
|
-
- '0.
|
51
|
-
X-
|
52
|
-
-
|
53
|
-
|
54
|
-
-
|
38
|
+
- '0.012706'
|
39
|
+
X-Powered-By:
|
40
|
+
- Phusion Passenger 5.2.3
|
41
|
+
Server:
|
42
|
+
- nginx/1.12.2 + Phusion Passenger 5.2.3
|
55
43
|
body:
|
56
|
-
encoding:
|
57
|
-
string:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: !binary |-
|
46
|
+
eyJkYXRhIjp7ImlkIjoiMTAuNTI4MSIsInR5cGUiOiJwcmVmaXhlcyIsImF0dHJpYnV0ZXMiOnsicmVnaXN0cmF0aW9uLWFnZW5jeSI6IkRhdGFDaXRlIiwiY3JlYXRlZCI6IjIwMTAtMDEtMDFUMDA6MDA6MDAuMDAwWiIsInVwZGF0ZWQiOm51bGx9LCJyZWxhdGlvbnNoaXBzIjp7ImNsaWVudHMiOnsiZGF0YSI6W3siaWQiOiJjZXJuLnplbm9kbyIsInR5cGUiOiJjbGllbnRzIn1dfSwicHJvdmlkZXJzIjp7ImRhdGEiOlt7ImlkIjoiY2VybiIsInR5cGUiOiJwcm92aWRlcnMifV19fX0sImluY2x1ZGVkIjpbeyJpZCI6ImNlcm4uemVub2RvIiwidHlwZSI6ImNsaWVudHMiLCJhdHRyaWJ1dGVzIjp7Im5hbWUiOiJaRU5PRE8gLSBSZXNlYXJjaC4gU2hhcmVkLiIsInN5bWJvbCI6IkNFUk4uWkVOT0RPIiwieWVhciI6MjAxMywiY29udGFjdC1uYW1lIjoiTGFycyBIb2xtIE5pZWxzZW4iLCJjb250YWN0LWVtYWlsIjoibGFycy5ob2xtLm5pZWxzZW5AY2Vybi5jaCIsImRvbWFpbnMiOiJvcGVuYWlyZS5jZXJuLmNoLHplbm9kby5vcmciLCJ1cmwiOm51bGwsImlzLWFjdGl2ZSI6dHJ1ZSwiaGFzLXB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LiBJdCBhbGxvd3MgcmVzZWFyY2hlcnMgdG8gc2hhcmUgYW5kIHByZXNlcnZlIHRoZWlyIG91dHB1dCBpbmRlcGVuZGVudCBvZiBzaXplLCB0eXBlIG9mIG1hdGVyaWFsIG9yIGRpc2NpcGxpbmUuIiwiY291bnRyeSI6IkNIIiwibG9nby11cmwiOiJodHRwczovL2Fzc2V0cy5kYXRhY2l0ZS5vcmcvaW1hZ2VzL21lbWJlcnMvY2Vybi5wbmciLCJpbnN0aXR1dGlvbi10eXBlIjpudWxsLCJpcy1hY3RpdmUiOnRydWUsImhhcy1wYXNzd29yZCI6dHJ1ZSwiam9pbmVkIjoiMjAxNC0wMy0yNSIsImNyZWF0ZWQiOiIyMDE0LTA0LTEwVDEzOjQxOjQ0LjAwMFoiLCJ1cGRhdGVkIjoiMjAxOC0wNC0xMVQwMjoyNTo1MS4wMDBaIn0sInJlbGF0aW9uc2hpcHMiOnsiY2xpZW50cyI6eyJtZXRhIjp7fX0sInByZWZpeGVzIjp7Im1ldGEiOnt9fX19XX0=
|
58
47
|
http_version:
|
59
|
-
recorded_at:
|
48
|
+
recorded_at: Wed, 11 Apr 2018 20:53:37 GMT
|
60
49
|
- request:
|
61
50
|
method: get
|
62
|
-
uri: https://search.datacite.org/api?fl=doi,xml,media,minted,updated&q=doi:10.5281/zenodo.59983&wt=json
|
51
|
+
uri: https://search.datacite.org/api?fl=doi,url,xml,state,allocator_symbol,datacentre_symbol,media,minted,updated&q=doi:10.5281/zenodo.59983&wt=json
|
63
52
|
body:
|
64
53
|
encoding: US-ASCII
|
65
54
|
string: ''
|
66
55
|
headers:
|
67
56
|
User-Agent:
|
68
|
-
- Maremma - https://github.com/datacite/maremma
|
57
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
69
58
|
Accept:
|
70
59
|
- text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
|
71
60
|
response:
|
@@ -73,35 +62,37 @@ http_interactions:
|
|
73
62
|
code: 200
|
74
63
|
message: OK
|
75
64
|
headers:
|
76
|
-
|
77
|
-
-
|
78
|
-
Access-Control-Allow-Origin:
|
79
|
-
- "*"
|
65
|
+
Date:
|
66
|
+
- Wed, 11 Apr 2018 20:53:37 GMT
|
80
67
|
Content-Type:
|
81
68
|
- application/json;charset=UTF-8
|
82
|
-
Date:
|
83
|
-
- Tue, 20 Jun 2017 08:44:42 GMT
|
84
|
-
Server:
|
85
|
-
- openresty/1.11.2.2
|
86
|
-
Content-Length:
|
87
|
-
- '2816'
|
88
69
|
Connection:
|
89
70
|
- keep-alive
|
71
|
+
Server:
|
72
|
+
- nginx/1.10.3 (Ubuntu)
|
73
|
+
Access-Control-Allow-Origin:
|
74
|
+
- "*"
|
75
|
+
Access-Control-Allow-Methods:
|
76
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
77
|
+
Access-Control-Allow-Headers:
|
78
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
79
|
+
Access-Control-Expose-Headers:
|
80
|
+
- DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
|
90
81
|
body:
|
91
|
-
encoding:
|
92
|
-
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"xml":"PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5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Q7YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vZWxlYW5vcmFraCImZ3Q7ZWxlYW5vcmFraCZsdDsvYSZndDsuJmx0Oy9saSZndDsKJmx0Oy91bCZndDs8L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","minted":"2016-08-11T04:47:51Z","updated":"2017-05-30T02:43:22Z","doi":"10.5281/ZENODO.59983"}]}}
|
82
|
+
encoding: ASCII-8BIT
|
83
|
+
string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"datacentre_symbol":"CERN.ZENODO","xml":"PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPHJlc291cmNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJodHRwOi8vZGF0YWNpdGUub3JnL3NjaGVtYS9rZXJuZWwtMyBodHRwOi8vc2NoZW1hLmRhdGFjaXRlLm9yZy9tZXRhL2tlcm5lbC0zL21ldGFkYXRhLnhzZCI+CiAgPGlkZW50aWZpZXIgaWRlbnRpZmllclR5cGU9IkRPSSI+MTAuNTI4MS96ZW5vZG8uNTk5ODM8L2lkZW50aWZpZXI+CiAgPGNyZWF0b3JzPgogICAgPGNyZWF0b3I+CiAgICAgIDxjcmVhdG9yTmFtZT5NYXJ0aW4gRmVubmVyPC9jcmVhdG9yTmFtZT4KICAgICAgPGFmZmlsaWF0aW9uPkRhdGFDaXRlPC9hZmZpbGlhdGlvbj4KICAgIDwvY3JlYXRvcj4KICAgIDxjcmVhdG9yPgogICAgICA8Y3JlYXRvck5hbWU+R3VkbXVuZHVyIEEuIFRob3Jpc3NvbjwvY3JlYXRvck5hbWU+CiAgICA8L2NyZWF0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V1LXJlcG8vc2VtYW50aWNzL29wZW5BY2Nlc3MiPk9wZW4gQWNjZXNzPC9yaWdodHM+CiAgPC9yaWdodHNMaXN0PgogIDxkZXNjcmlwdGlvbnM+CiAgICA8ZGVzY3JpcHRpb24gZGVzY3JpcHRpb25UeXBlPSJBYnN0cmFjdCI+Jmx0O3AmZ3Q7Jmx0O2EgaHJlZj0iaHR0cHM6Ly9naXRodWIuY29tL2RhdGFjaXRlL29tbmlhdXRoLW9yY2lkL3JlbGVhc2VzL3RhZy92LjEuMS41IiZndDtvbm1pYXV0aC1vcmNpZCAxLjEuNSZsdDsvYSZndDsgd2FzIHJlbGVhc2VkIG9uIEF1Z3VzdCAxMSwgMjAxNiB3aXRoIHRoZSBmb2xsb3dpbmcgY2hhbmdlczombHQ7L3AmZ3Q7CgombHQ7dWwmZ3Q7CiZsdDtsaSZndDtjb21wYXRpYmlsaXR5IHdpdGggb21uaWF1dGgtb2F1dGgyIDEuNC4wLiBUaGFua3MgdG8gcHVsbCByZXF1ZXN0ICZsdDthIGhyZWY9Imh0dHBzOi8vZ2l0aHViLmNvbS9kYXRhY2l0ZS9vbW5pYXV0aC1vcmNpZC9wdWxsLzciJmd0OyM3Jmx0Oy9hJmd0OyBieSAmbHQ7YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vZWxlYW5vcmFraCImZ3Q7ZWxlYW5vcmFraCZsdDsvYSZndDsuJmx0Oy9saSZndDsKJmx0Oy91bCZndDs8L2Rlc2NyaXB0aW9uPgogIDwvZGVzY3JpcHRpb25zPgo8L3Jlc291cmNlPgo=","allocator_symbol":"CERN","minted":"2016-08-11T04:47:51Z","state":"findable","updated":"2017-05-30T02:43:22Z","doi":"10.5281/ZENODO.59983"}]}}
|
93
84
|
|
94
85
|
'
|
95
86
|
http_version:
|
96
|
-
recorded_at:
|
87
|
+
recorded_at: Wed, 11 Apr 2018 20:53:37 GMT
|
97
88
|
- request:
|
98
89
|
method: post
|
99
|
-
uri: https://api.sandbox.orcid.org/v2.
|
90
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/notification-permission
|
100
91
|
body:
|
101
92
|
encoding: UTF-8
|
102
93
|
string: |
|
103
94
|
<?xml version="1.0" encoding="UTF-8"?>
|
104
|
-
<notification:notification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:notification="http://www.orcid.org/ns/notification" xsi:schemaLocation="http://www.orcid.org/ns/notification ../notification-permission-2.
|
95
|
+
<notification:notification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://www.orcid.org/ns/common" xmlns:notification="http://www.orcid.org/ns/notification" xsi:schemaLocation="http://www.orcid.org/ns/notification ../notification-permission-2.1.xsd">
|
105
96
|
<notification:notification-type>permission</notification:notification-type>
|
106
97
|
<notification:authorization-url>
|
107
98
|
<notification:path>/oauth/authorize?client_id=<ORCID_CLIENT_ID>&response_type=code&scope=/read-limited%20/activities/update%20/person/update&redirect_uri=http://localhost:8080/users/auth/orcid/callback</notification:path>
|
@@ -123,7 +114,7 @@ http_interactions:
|
|
123
114
|
</notification:notification>
|
124
115
|
headers:
|
125
116
|
User-Agent:
|
126
|
-
- Maremma - https://github.com/datacite/maremma
|
117
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
127
118
|
Content-Type:
|
128
119
|
- application/vnd.orcid+xml
|
129
120
|
Accept:
|
@@ -138,7 +129,7 @@ http_interactions:
|
|
138
129
|
Server:
|
139
130
|
- nginx/1.10.0
|
140
131
|
Date:
|
141
|
-
-
|
132
|
+
- Wed, 11 Apr 2018 20:53:37 GMT
|
142
133
|
Content-Type:
|
143
134
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
144
135
|
Content-Length:
|
@@ -160,10 +151,10 @@ http_interactions:
|
|
160
151
|
X-Content-Type-Options:
|
161
152
|
- nosniff
|
162
153
|
Location:
|
163
|
-
- http://api.sandbox.orcid.org:443/orcid-api-web/v2.
|
154
|
+
- http://api.sandbox.orcid.org:443/orcid-api-web/v2.1/0000-0001-6528-2027/notification-permission/292000
|
164
155
|
body:
|
165
|
-
encoding:
|
156
|
+
encoding: ASCII-8BIT
|
166
157
|
string: ''
|
167
158
|
http_version:
|
168
|
-
recorded_at:
|
169
|
-
recorded_with: VCR
|
159
|
+
recorded_at: Wed, 11 Apr 2018 20:53:38 GMT
|
160
|
+
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.sandbox.orcid.org/v2.
|
5
|
+
uri: https://api.sandbox.orcid.org/v2.1/0000-0001-6528-2027/work/921977
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Maremma - https://github.com/datacite/maremma
|
11
|
+
- Maremma 4.0.5 - https://github.com/datacite/maremma
|
12
12
|
Content-Type:
|
13
13
|
- application/vnd.orcid+xml
|
14
14
|
Accept:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- nginx/1.10.0
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 11 Apr 2018 20:30:04 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/vnd.orcid+xml; qs=5;charset=UTF-8
|
29
29
|
Connection:
|
@@ -43,8 +43,8 @@ http_interactions:
|
|
43
43
|
X-Content-Type-Options:
|
44
44
|
- nosniff
|
45
45
|
body:
|
46
|
-
encoding:
|
46
|
+
encoding: ASCII-8BIT
|
47
47
|
string: ''
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
50
|
-
recorded_with: VCR
|
49
|
+
recorded_at: Wed, 11 Apr 2018 20:30:04 GMT
|
50
|
+
recorded_with: VCR 4.0.0
|