qualtrics_api 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 26c645c6b30708db2df58ac9fb159e8d410b7d2c
4
- data.tar.gz: 89736d0fc13cccea475be66fd4efa6c6d81b3586
2
+ SHA256:
3
+ metadata.gz: fb50ddee1036fc3427d0ef544b720df8cdb0377f45f2b31750b80b940efcd37c
4
+ data.tar.gz: ab4cff3a77a42416b894fa14f70c66ec102a01d0b248588af84332aae8043461
5
5
  SHA512:
6
- metadata.gz: 7c40df9c3887183692f35e72bbae0c164b757a8bfeb51a8de9174e17a75d6eae257fbfca0a5010c9ff3bc529c405c072c10fedc7123c85682721a21d60bffa6f
7
- data.tar.gz: b71e77dff22d56755a9c12fad493176bb7db9de39ffca27af3ae0b8cb1e8e239fbf4226d3aa06ab45907e07b4ecb61a5b7a08291a54f37318f30aec65fac057e
6
+ metadata.gz: 7658e9d9ebcbcea8e140048f0ec961ee8468516fba1b953557cf75daaca419e896095528284f8060357930e13386346f9a604af5260fa92b08f3781c586ca0a7
7
+ data.tar.gz: 4e839ba0a562dff16581d909caea74e6f653c37d762e3ff7c13d86628667257737730ec0bdbf0fdf8317acc6d001bead75b66d39dab068738849e59b3705e322
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
4
- install: gem install bundler --version '~> 1.7' && bundle install
3
+ - 2.4.0
4
+ install: gem install bundler --version '~> 1.16' && bundle install
data/README.md CHANGED
@@ -29,7 +29,11 @@ Or install it yourself as:
29
29
 
30
30
  ```ruby
31
31
  QualtricsAPI.configure do |config|
32
+ # mandatory
32
33
  config.api_token = "YOUR_QUALTRICS_API_KEY"
34
+
35
+ # optionally - you can provide a data center id
36
+ config.data_center_id = "co1" #defaults to co1
33
37
  end
34
38
  ```
35
39
 
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"publicationUrl":"https://some.random.url","topics":"controlpanel.activateSurvey","encrypt":false}'
9
+ headers:
10
+ X-API-TOKEN:
11
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
12
+ User-Agent:
13
+ - Faraday v0.9.2
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ request-time:
22
+ - '1226'
23
+ content-type:
24
+ - application/json
25
+ content-length:
26
+ - '123'
27
+ x-edgeconnect-midmile-rtt:
28
+ - '23'
29
+ x-edgeconnect-origin-mex-latency:
30
+ - '1287'
31
+ date:
32
+ - Mon, 04 Dec 2017 21:51:07 GMT
33
+ connection:
34
+ - close
35
+ strict-transport-security:
36
+ - max-age=31536000; includeSubDomains; preload
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"result":{"id":"SUB_5pPHcNfCaiADoFf"},"meta":{"httpStatus":"200 -
40
+ OK","requestId":"acedea00-c9df-4afa-937a-9040faeea301"}}'
41
+ http_version:
42
+ recorded_at: Mon, 04 Dec 2017 21:51:07 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_5pPHcNfCaiADoFf
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ''
49
+ headers:
50
+ X-API-TOKEN:
51
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
52
+ User-Agent:
53
+ - Faraday v0.9.2
54
+ response:
55
+ status:
56
+ code: 200
57
+ message:
58
+ headers:
59
+ request-time:
60
+ - '342'
61
+ content-type:
62
+ - application/json
63
+ content-length:
64
+ - '274'
65
+ x-edgeconnect-midmile-rtt:
66
+ - '17'
67
+ x-edgeconnect-origin-mex-latency:
68
+ - '392'
69
+ date:
70
+ - Mon, 04 Dec 2017 21:51:07 GMT
71
+ connection:
72
+ - close
73
+ strict-transport-security:
74
+ - max-age=31536000; includeSubDomains; preload
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"result":{"id":"SUB_5pPHcNfCaiADoFf","scope":"cambridgetripod","topics":"controlpanel.activateSurvey","publicationUrl":"https://some.random.url","encrypted":false,"successfulCalls":0},"meta":{"httpStatus":"200
78
+ - OK","requestId":"3c7789ec-e3ab-423b-9da3-cb36ff97f339"}}'
79
+ http_version:
80
+ recorded_at: Mon, 04 Dec 2017 21:51:07 GMT
81
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"publicationUrl":"https://request.url.fake","topics":"surveyengine.partialResponse.SV_ANOTHER_SURVEY","encrypt":false}'
9
+ headers:
10
+ X-API-TOKEN:
11
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
12
+ User-Agent:
13
+ - Faraday v0.9.2
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ request-time:
22
+ - '381'
23
+ content-type:
24
+ - application/json
25
+ content-length:
26
+ - '123'
27
+ x-edgeconnect-midmile-rtt:
28
+ - '20'
29
+ x-edgeconnect-origin-mex-latency:
30
+ - '429'
31
+ date:
32
+ - Mon, 04 Dec 2017 23:14:25 GMT
33
+ connection:
34
+ - close
35
+ strict-transport-security:
36
+ - max-age=31536000; includeSubDomains; preload
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"result":{"id":"SUB_0fHFD2hnaSp9veZ"},"meta":{"httpStatus":"200 -
40
+ OK","requestId":"cd3306e3-b58b-4930-86d8-77909aeea772"}}'
41
+ http_version:
42
+ recorded_at: Mon, 04 Dec 2017 23:14:25 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_0fHFD2hnaSp9veZ
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ''
49
+ headers:
50
+ X-API-TOKEN:
51
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
52
+ User-Agent:
53
+ - Faraday v0.9.2
54
+ response:
55
+ status:
56
+ code: 200
57
+ message:
58
+ headers:
59
+ request-time:
60
+ - '226'
61
+ content-type:
62
+ - application/json
63
+ content-length:
64
+ - '294'
65
+ x-edgeconnect-midmile-rtt:
66
+ - '25'
67
+ x-edgeconnect-origin-mex-latency:
68
+ - '272'
69
+ date:
70
+ - Mon, 04 Dec 2017 23:14:26 GMT
71
+ connection:
72
+ - close
73
+ strict-transport-security:
74
+ - max-age=31536000; includeSubDomains; preload
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"result":{"id":"SUB_0fHFD2hnaSp9veZ","scope":"cambridgetripod","topics":"surveyengine.partialResponse.SV_ANOTHER_SURVEY","publicationUrl":"https://request.url.fake","encrypted":false,"successfulCalls":0},"meta":{"httpStatus":"200
78
+ - OK","requestId":"2d448524-8850-4865-82c1-2a8923f3ee2c"}}'
79
+ http_version:
80
+ recorded_at: Mon, 04 Dec 2017 23:14:26 GMT
81
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"publicationUrl":"https://some.url.fake","topics":"surveyengine.completedResponse.SV_SOME_SURVEY_ID","encrypt":false}'
9
+ headers:
10
+ X-API-TOKEN:
11
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
12
+ User-Agent:
13
+ - Faraday v0.9.2
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 200
19
+ message:
20
+ headers:
21
+ request-time:
22
+ - '589'
23
+ content-type:
24
+ - application/json
25
+ content-length:
26
+ - '123'
27
+ x-edgeconnect-midmile-rtt:
28
+ - '19'
29
+ x-edgeconnect-origin-mex-latency:
30
+ - '638'
31
+ date:
32
+ - Mon, 04 Dec 2017 22:46:35 GMT
33
+ connection:
34
+ - close
35
+ strict-transport-security:
36
+ - max-age=31536000; includeSubDomains; preload
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"result":{"id":"SUB_bJz4lXj0Uku1IQ5"},"meta":{"httpStatus":"200 -
40
+ OK","requestId":"47fa2920-1f39-4ab8-84b5-f577fdb025e0"}}'
41
+ http_version:
42
+ recorded_at: Mon, 04 Dec 2017 22:46:35 GMT
43
+ - request:
44
+ method: get
45
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_bJz4lXj0Uku1IQ5
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ''
49
+ headers:
50
+ X-API-TOKEN:
51
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
52
+ User-Agent:
53
+ - Faraday v0.9.2
54
+ response:
55
+ status:
56
+ code: 200
57
+ message:
58
+ headers:
59
+ request-time:
60
+ - '300'
61
+ content-type:
62
+ - application/json
63
+ content-length:
64
+ - '296'
65
+ x-edgeconnect-midmile-rtt:
66
+ - '24'
67
+ x-edgeconnect-origin-mex-latency:
68
+ - '451'
69
+ date:
70
+ - Mon, 04 Dec 2017 22:46:36 GMT
71
+ connection:
72
+ - close
73
+ strict-transport-security:
74
+ - max-age=31536000; includeSubDomains; preload
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"result":{"id":"SUB_bJz4lXj0Uku1IQ5","scope":"cambridgetripod","topics":"surveyengine.completedResponse.SV_SOME_SURVEY_ID","publicationUrl":"https://some.url.fake","encrypted":false,"successfulCalls":0},"meta":{"httpStatus":"200
78
+ - OK","requestId":"b50a7391-7285-4570-b5c3-6cb3c1577020"}}'
79
+ http_version:
80
+ recorded_at: Mon, 04 Dec 2017 22:46:36 GMT
81
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_2i7QDi3PXEK4eqx
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-API-TOKEN:
11
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
12
+ User-Agent:
13
+ - Faraday v0.9.2
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ request-time:
20
+ - '263'
21
+ content-type:
22
+ - application/json
23
+ content-length:
24
+ - '274'
25
+ x-edgeconnect-midmile-rtt:
26
+ - '13'
27
+ x-edgeconnect-origin-mex-latency:
28
+ - '311'
29
+ date:
30
+ - Mon, 04 Dec 2017 22:18:18 GMT
31
+ connection:
32
+ - close
33
+ strict-transport-security:
34
+ - max-age=31536000; includeSubDomains; preload
35
+ body:
36
+ encoding: UTF-8
37
+ string: '{"result":{"id":"SUB_2i7QDi3PXEK4eqx","scope":"cambridgetripod","topics":"controlpanel.activateSurvey","publicationUrl":"https://requestb.in/1mnrk0m1","encrypted":false,"successfulCalls":0},"meta":{"httpStatus":"200
38
+ - OK","requestId":"0128b47a-36b2-44c4-a515-eb6e401da0a0"}}'
39
+ http_version:
40
+ recorded_at: Mon, 04 Dec 2017 22:18:18 GMT
41
+ - request:
42
+ method: delete
43
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_2i7QDi3PXEK4eqx
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
47
+ headers:
48
+ X-API-TOKEN:
49
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
50
+ User-Agent:
51
+ - Faraday v0.9.2
52
+ response:
53
+ status:
54
+ code: 200
55
+ message:
56
+ headers:
57
+ request-time:
58
+ - '430'
59
+ content-type:
60
+ - application/json
61
+ content-length:
62
+ - '85'
63
+ x-edgeconnect-midmile-rtt:
64
+ - '12'
65
+ x-edgeconnect-origin-mex-latency:
66
+ - '482'
67
+ date:
68
+ - Mon, 04 Dec 2017 22:18:19 GMT
69
+ connection:
70
+ - close
71
+ strict-transport-security:
72
+ - max-age=31536000; includeSubDomains; preload
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"meta":{"httpStatus":"200 - OK","requestId":"98502291-c131-4054-97d8-2960b54ccb4b"}}'
76
+ http_version:
77
+ recorded_at: Mon, 04 Dec 2017 22:18:19 GMT
78
+ - request:
79
+ method: get
80
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions/SUB_2i7QDi3PXEK4eqx
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ''
84
+ headers:
85
+ X-API-TOKEN:
86
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
87
+ User-Agent:
88
+ - Faraday v0.9.2
89
+ response:
90
+ status:
91
+ code: 404
92
+ message:
93
+ headers:
94
+ content-type:
95
+ - application/json
96
+ content-length:
97
+ - '136'
98
+ x-edgeconnect-midmile-rtt:
99
+ - '14'
100
+ x-edgeconnect-origin-mex-latency:
101
+ - '410'
102
+ date:
103
+ - Mon, 04 Dec 2017 22:18:19 GMT
104
+ connection:
105
+ - close
106
+ strict-transport-security:
107
+ - max-age=31536000; includeSubDomains; preload
108
+ body:
109
+ encoding: UTF-8
110
+ string: '{"meta":{"httpStatus":"404 - Not Found","error":{"errorMessage":"SUB_2i7QDi3PXEK4eqx
111
+ not found","errorCode":"ESSG_2"},"requestId":null}}'
112
+ http_version:
113
+ recorded_at: Mon, 04 Dec 2017 22:18:19 GMT
114
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,116 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-API-TOKEN:
11
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
12
+ User-Agent:
13
+ - Faraday v0.9.2
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ request-time:
20
+ - '320'
21
+ content-type:
22
+ - application/json
23
+ content-length:
24
+ - '665'
25
+ x-edgeconnect-midmile-rtt:
26
+ - '21'
27
+ x-edgeconnect-origin-mex-latency:
28
+ - '366'
29
+ date:
30
+ - Mon, 04 Dec 2017 22:37:44 GMT
31
+ connection:
32
+ - close
33
+ strict-transport-security:
34
+ - max-age=31536000; includeSubDomains; preload
35
+ body:
36
+ encoding: UTF-8
37
+ string: '{"result":{"elements":[{"id":"SUB_86W2qbYSvtEp9f7","scope":"cambridgetripod","topics":"controlpanel.activateSurvey","publicationUrl":"https://requestb.in/1mnrk0m1","encrypted":false,"successfulCalls":0},{"id":"SUB_8jlPETNFfH7x2Cx","scope":"cambridgetripod","topics":"controlpanel.activateSurvey","publicationUrl":"https://requestb.in/1mnrk0m1","encrypted":false,"successfulCalls":0},{"id":"SUB_a5XSeQjE0aK7mIZ","scope":"cambridgetripod","topics":"controlpanel.activateSurvey","publicationUrl":"https://requestb.in/1mnrk0m1","encrypted":false,"successfulCalls":0}],"nextPage":null},"meta":{"httpStatus":"200
38
+ - OK","requestId":"961442ab-cafb-466b-b139-00b691b1e16e"}}'
39
+ http_version:
40
+ recorded_at: Mon, 04 Dec 2017 22:37:44 GMT
41
+ - request:
42
+ method: delete
43
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
47
+ headers:
48
+ X-API-TOKEN:
49
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
50
+ User-Agent:
51
+ - Faraday v0.9.2
52
+ response:
53
+ status:
54
+ code: 200
55
+ message:
56
+ headers:
57
+ request-time:
58
+ - '391'
59
+ content-type:
60
+ - application/json
61
+ content-length:
62
+ - '85'
63
+ x-edgeconnect-midmile-rtt:
64
+ - '20'
65
+ x-edgeconnect-origin-mex-latency:
66
+ - '449'
67
+ date:
68
+ - Mon, 04 Dec 2017 22:37:45 GMT
69
+ connection:
70
+ - close
71
+ strict-transport-security:
72
+ - max-age=31536000; includeSubDomains; preload
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"meta":{"httpStatus":"200 - OK","requestId":"8372135c-f3a0-422b-8c4d-2fadb50e4eb3"}}'
76
+ http_version:
77
+ recorded_at: Mon, 04 Dec 2017 22:37:45 GMT
78
+ - request:
79
+ method: get
80
+ uri: https://co1.qualtrics.com/API/v3/eventsubscriptions
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ''
84
+ headers:
85
+ X-API-TOKEN:
86
+ - 6Wpo0Vsx1cN1kcHivCaGTz5IhOvchLrg1o4L0KOZ
87
+ User-Agent:
88
+ - Faraday v0.9.2
89
+ response:
90
+ status:
91
+ code: 200
92
+ message:
93
+ headers:
94
+ request-time:
95
+ - '283'
96
+ content-type:
97
+ - application/json
98
+ content-length:
99
+ - '126'
100
+ x-edgeconnect-midmile-rtt:
101
+ - '26'
102
+ x-edgeconnect-origin-mex-latency:
103
+ - '326'
104
+ date:
105
+ - Mon, 04 Dec 2017 22:37:45 GMT
106
+ connection:
107
+ - close
108
+ strict-transport-security:
109
+ - max-age=31536000; includeSubDomains; preload
110
+ body:
111
+ encoding: UTF-8
112
+ string: '{"result":{"elements":[],"nextPage":null},"meta":{"httpStatus":"200
113
+ - OK","requestId":"4fd9563e-f7b4-4e50-a5a3-495aa3bd25e2"}}'
114
+ http_version:
115
+ recorded_at: Mon, 04 Dec 2017 22:37:45 GMT
116
+ recorded_with: VCR 2.9.3