nationbuilder-rb 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +5 -5
- data/Gemfile.lock +35 -31
- data/lib/nationbuilder.rb +1 -0
- data/lib/nationbuilder/client.rb +5 -7
- data/lib/nationbuilder/method.rb +4 -8
- data/lib/nationbuilder/paginator.rb +1 -1
- data/lib/nationbuilder/spec_parser.rb +1 -3
- data/lib/nationbuilder/utils.rb +22 -0
- data/lib/nationbuilder/version.rb +1 -1
- data/nationbuilder-rb.gemspec +21 -17
- data/spec/fixtures/delete.yml +23 -21
- data/spec/fixtures/errored_get.yml +80 -0
- data/spec/fixtures/paginated_get.yml +95 -0
- data/spec/fixtures/paginated_get_page2.yml +35 -31
- data/spec/fixtures/paginated_get_page2_with_limit.yml +30 -26
- data/spec/fixtures/paginated_get_page3.yml +27 -23
- data/spec/fixtures/parametered_get.yml +25 -32
- data/spec/fixtures/parametered_post.yml +27 -23
- data/spec/lib/nationbuilder/client_spec.rb +4 -6
- data/spec/lib/nationbuilder/paginator_spec.rb +3 -3
- data/spec/lib/nationbuilder/utils_spec.rb +25 -0
- metadata +18 -14
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://testnation.nationbuilder.com/api/v1/sites/testsite/pages/basic_pages?limit=11
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.7.0.1, ruby 2.5.1 (2018-03-29))
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
Date:
|
15
|
+
- Tue, 30 Oct 2018 20:20:39 GMT
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Bearer 03c22256c06ed11f6bee83673addf26e02a86caa1a5127f4e0815be7223fe4a3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Etag:
|
28
|
+
- W/"a7398a0ece988aab15f07997d6eeb23a-gzip"
|
29
|
+
Nation-Ratelimit-Limit:
|
30
|
+
- '999999'
|
31
|
+
Nation-Ratelimit-Remaining:
|
32
|
+
- '999999'
|
33
|
+
Nation-Ratelimit-Reset:
|
34
|
+
- '1540944000'
|
35
|
+
Server:
|
36
|
+
- Apache/2.4.7 (Ubuntu)
|
37
|
+
Status:
|
38
|
+
- 200 OK
|
39
|
+
Vary:
|
40
|
+
- Accept-Encoding
|
41
|
+
X-Content-Type-Options:
|
42
|
+
- nosniff
|
43
|
+
X-Frame-Options:
|
44
|
+
- ALLOWALL
|
45
|
+
X-Middleware-Start:
|
46
|
+
- t=1540930840130933
|
47
|
+
X-Powered-By:
|
48
|
+
- Phusion Passenger Enterprise 5.0.28
|
49
|
+
X-Pulse-Approved:
|
50
|
+
- 'true'
|
51
|
+
X-Rack-Cache:
|
52
|
+
- miss
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- 10s
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '97'
|
57
|
+
X-Ratelimit-Reset:
|
58
|
+
- '1540930848'
|
59
|
+
X-Request-Id:
|
60
|
+
- 64295f87-393a-4385-b0f3-05812b75ad5b
|
61
|
+
X-Runtime:
|
62
|
+
- '0.104447'
|
63
|
+
X-Served-By:
|
64
|
+
- api13
|
65
|
+
Content-Length:
|
66
|
+
- '3187'
|
67
|
+
Expires:
|
68
|
+
- Tue, 30 Oct 2018 20:20:40 GMT
|
69
|
+
Cache-Control:
|
70
|
+
- max-age=0, no-cache, no-store
|
71
|
+
Pragma:
|
72
|
+
- no-cache
|
73
|
+
Date:
|
74
|
+
- Tue, 30 Oct 2018 20:20:40 GMT
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
Use-Proxy:
|
78
|
+
- 'True'
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: '{"results":[{"slug":"basic_23","path":"/basic_23","status":"unlisted","site_slug":"testsite","name":"Basic
|
82
|
+
23","headline":"Basic 23","title":"Basic 23 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":121,"content":null},{"slug":"basic_22","path":"/basic_22","status":"unlisted","site_slug":"testsite","name":"Basic
|
83
|
+
22","headline":"Basic 22","title":"Basic 22 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":120,"content":null},{"slug":"basic_21","path":"/basic_21","status":"unlisted","site_slug":"testsite","name":"Basic
|
84
|
+
21","headline":"Basic 21","title":"Basic 21 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":119,"content":null},{"slug":"basic_20","path":"/basic_20","status":"unlisted","site_slug":"testsite","name":"Basic
|
85
|
+
20","headline":"Basic 20","title":"Basic 20 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":118,"content":null},{"slug":"basic_19","path":"/basic_19","status":"unlisted","site_slug":"testsite","name":"Basic
|
86
|
+
19","headline":"Basic 19","title":"Basic 19 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":117,"content":null},{"slug":"basic_18","path":"/basic_18","status":"unlisted","site_slug":"testsite","name":"Basic
|
87
|
+
18","headline":"Basic 18","title":"Basic 18 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":116,"content":null},{"slug":"basic_17","path":"/basic_17","status":"unlisted","site_slug":"testsite","name":"Basic
|
88
|
+
17","headline":"Basic 17","title":"Basic 17 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":115,"content":null},{"slug":"basic_16","path":"/basic_16","status":"unlisted","site_slug":"testsite","name":"Basic
|
89
|
+
16","headline":"Basic 16","title":"Basic 16 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":114,"content":null},{"slug":"basic_15","path":"/basic_15","status":"unlisted","site_slug":"testsite","name":"Basic
|
90
|
+
15","headline":"Basic 15","title":"Basic 15 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":113,"content":null},{"slug":"basic_14","path":"/basic_14","status":"unlisted","site_slug":"testsite","name":"Basic
|
91
|
+
14","headline":"Basic 14","title":"Basic 14 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":112,"content":null},{"slug":"basic_13","path":"/basic_13","status":"unlisted","site_slug":"testsite","name":"Basic
|
92
|
+
13","headline":"Basic 13","title":"Basic 13 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":111,"content":null}],"next":"/api/v1/sites/testsite/pages/basic_pages?__nonce=Ked-9tttB9C4cKzeOcTGpQ\u0026__token=AIstYXYV_-i77Hdo8HcDDdBvt7l3HSo1FBm6CdgdouS6\u0026limit=11","prev":null}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Tue, 30 Oct 2018 20:20:40 GMT
|
95
|
+
recorded_with: VCR 2.9.3
|
@@ -2,36 +2,38 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://testnation.nationbuilder.com/api/v1/sites/testsite/pages/basic_pages?limit=11
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.7.0.1, ruby 2.1
|
11
|
+
- HTTPClient/1.0 (2.7.0.1, ruby 2.5.1 (2018-03-29))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Tue, 30 Oct 2018 20:31:16 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Bearer 03c22256c06ed11f6bee83673addf26e02a86caa1a5127f4e0815be7223fe4a3
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.7 (Ubuntu)
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Etag:
|
28
|
-
- W/"
|
28
|
+
- W/"ddf724d5fee593219690d48451493c0a-gzip"
|
29
29
|
Nation-Ratelimit-Limit:
|
30
30
|
- '999999'
|
31
31
|
Nation-Ratelimit-Remaining:
|
32
32
|
- '999999'
|
33
33
|
Nation-Ratelimit-Reset:
|
34
|
-
- '
|
34
|
+
- '1540944000'
|
35
|
+
Server:
|
36
|
+
- Apache/2.4.7 (Ubuntu)
|
35
37
|
Status:
|
36
38
|
- 200 OK
|
37
39
|
Vary:
|
@@ -39,7 +41,9 @@ http_interactions:
|
|
39
41
|
X-Content-Type-Options:
|
40
42
|
- nosniff
|
41
43
|
X-Frame-Options:
|
42
|
-
-
|
44
|
+
- ALLOWALL
|
45
|
+
X-Middleware-Start:
|
46
|
+
- t=1540931476975608
|
43
47
|
X-Powered-By:
|
44
48
|
- Phusion Passenger Enterprise 5.0.28
|
45
49
|
X-Pulse-Approved:
|
@@ -51,41 +55,41 @@ http_interactions:
|
|
51
55
|
X-Ratelimit-Remaining:
|
52
56
|
- '99'
|
53
57
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
58
|
+
- '1540931486'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
60
|
+
- 9e24943a-0fee-4d2a-9db0-3dbcc0de43c9
|
57
61
|
X-Runtime:
|
58
|
-
- '0.
|
59
|
-
X-
|
60
|
-
-
|
62
|
+
- '0.107058'
|
63
|
+
X-Served-By:
|
64
|
+
- api13
|
61
65
|
Content-Length:
|
62
66
|
- '3305'
|
63
67
|
Expires:
|
64
|
-
-
|
68
|
+
- Tue, 30 Oct 2018 20:31:17 GMT
|
65
69
|
Cache-Control:
|
66
70
|
- max-age=0, no-cache, no-store
|
67
71
|
Pragma:
|
68
72
|
- no-cache
|
69
73
|
Date:
|
70
|
-
-
|
74
|
+
- Tue, 30 Oct 2018 20:31:17 GMT
|
71
75
|
Connection:
|
72
76
|
- keep-alive
|
73
|
-
|
74
|
-
-
|
77
|
+
Use-Proxy:
|
78
|
+
- 'True'
|
75
79
|
body:
|
76
80
|
encoding: UTF-8
|
77
|
-
string: '{"results":[{"slug":"basic_12","path":"/basic_12","status":"unlisted","site_slug":"
|
78
|
-
12","headline":"Basic 12","title":"Basic 12 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":110,"content":null},{"slug":"basic_11","path":"/basic_11","status":"unlisted","site_slug":"
|
79
|
-
11","headline":"Basic 11","title":"Basic 11 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":109,"content":null},{"slug":"basic_10","path":"/basic_10","status":"unlisted","site_slug":"
|
80
|
-
10","headline":"Basic 10","title":"Basic 10 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":108,"content":null},{"slug":"basic_9","path":"/basic_9","status":"unlisted","site_slug":"
|
81
|
-
9","headline":"Basic 9","title":"Basic 9 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":107,"content":null},{"slug":"basic_8","path":"/basic_8","status":"unlisted","site_slug":"
|
82
|
-
8","headline":"Basic 8","title":"Basic 8 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":106,"content":null},{"slug":"basic_7","path":"/basic_7","status":"unlisted","site_slug":"
|
83
|
-
7","headline":"Basic 7","title":"Basic 7 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":105,"content":null},{"slug":"basic_6","path":"/basic_6","status":"unlisted","site_slug":"
|
84
|
-
6","headline":"Basic 6","title":"Basic 6 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":104,"content":null},{"slug":"basic_5","path":"/basic_5","status":"unlisted","site_slug":"
|
85
|
-
5","headline":"Basic 5","title":"Basic 5 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":103,"content":null},{"slug":"basic_4","path":"/basic_4","status":"unlisted","site_slug":"
|
86
|
-
4","headline":"Basic 4","title":"Basic 4 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":102,"content":null},{"slug":"basic_3","path":"/basic_3","status":"unlisted","site_slug":"
|
87
|
-
3","headline":"Basic 3","title":"Basic 3 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":101,"content":null},{"slug":"basic_2","path":"/basic_2","status":"unlisted","site_slug":"
|
88
|
-
2","headline":"Basic 2","title":"Basic 2 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":100,"content":null}],"next":"/api/v1/sites/
|
89
|
-
http_version:
|
90
|
-
recorded_at:
|
81
|
+
string: '{"results":[{"slug":"basic_12","path":"/basic_12","status":"unlisted","site_slug":"testsite","name":"Basic
|
82
|
+
12","headline":"Basic 12","title":"Basic 12 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":110,"content":null},{"slug":"basic_11","path":"/basic_11","status":"unlisted","site_slug":"testsite","name":"Basic
|
83
|
+
11","headline":"Basic 11","title":"Basic 11 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":109,"content":null},{"slug":"basic_10","path":"/basic_10","status":"unlisted","site_slug":"testsite","name":"Basic
|
84
|
+
10","headline":"Basic 10","title":"Basic 10 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":108,"content":null},{"slug":"basic_9","path":"/basic_9","status":"unlisted","site_slug":"testsite","name":"Basic
|
85
|
+
9","headline":"Basic 9","title":"Basic 9 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":107,"content":null},{"slug":"basic_8","path":"/basic_8","status":"unlisted","site_slug":"testsite","name":"Basic
|
86
|
+
8","headline":"Basic 8","title":"Basic 8 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":106,"content":null},{"slug":"basic_7","path":"/basic_7","status":"unlisted","site_slug":"testsite","name":"Basic
|
87
|
+
7","headline":"Basic 7","title":"Basic 7 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":105,"content":null},{"slug":"basic_6","path":"/basic_6","status":"unlisted","site_slug":"testsite","name":"Basic
|
88
|
+
6","headline":"Basic 6","title":"Basic 6 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":104,"content":null},{"slug":"basic_5","path":"/basic_5","status":"unlisted","site_slug":"testsite","name":"Basic
|
89
|
+
5","headline":"Basic 5","title":"Basic 5 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":103,"content":null},{"slug":"basic_4","path":"/basic_4","status":"unlisted","site_slug":"testsite","name":"Basic
|
90
|
+
4","headline":"Basic 4","title":"Basic 4 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":102,"content":null},{"slug":"basic_3","path":"/basic_3","status":"unlisted","site_slug":"testsite","name":"Basic
|
91
|
+
3","headline":"Basic 3","title":"Basic 3 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":101,"content":null},{"slug":"basic_2","path":"/basic_2","status":"unlisted","site_slug":"testsite","name":"Basic
|
92
|
+
2","headline":"Basic 2","title":"Basic 2 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":100,"content":null}],"next":"/api/v1/sites/testsite/pages/basic_pages?__nonce=ZRk-hXBpoItRjub8-3Aq8Q\u0026__token=ALuHSEp6Pd95pwihMS5XHDeN1OeQ4VKfshkVbbd8NG60\u0026limit=11","prev":"/api/v1/sites/testsite/pages/basic_pages?__nonce=MNChF9JK8jg0QpBB0wGj3A\u0026__token=ACMtRFjLF7ntG_5qlV02ukrv6MfAsCKhqtXIgm-E4Awf\u0026limit=11"}'
|
93
|
+
http_version:
|
94
|
+
recorded_at: Tue, 30 Oct 2018 20:31:17 GMT
|
91
95
|
recorded_with: VCR 2.9.3
|
@@ -2,36 +2,38 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://testnation.nationbuilder.com/api/v1/sites/testsite/pages/basic_pages?limit=5
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.7.0.1, ruby 2.1
|
11
|
+
- HTTPClient/1.0 (2.7.0.1, ruby 2.5.1 (2018-03-29))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Tue, 30 Oct 2018 20:31:20 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Bearer 03c22256c06ed11f6bee83673addf26e02a86caa1a5127f4e0815be7223fe4a3
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.7 (Ubuntu)
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Etag:
|
28
|
-
- W/"
|
28
|
+
- W/"242c92633784576593dad1a16b0aa5b6-gzip"
|
29
29
|
Nation-Ratelimit-Limit:
|
30
30
|
- '999999'
|
31
31
|
Nation-Ratelimit-Remaining:
|
32
32
|
- '999999'
|
33
33
|
Nation-Ratelimit-Reset:
|
34
|
-
- '
|
34
|
+
- '1540944000'
|
35
|
+
Server:
|
36
|
+
- Apache/2.4.7 (Ubuntu)
|
35
37
|
Status:
|
36
38
|
- 200 OK
|
37
39
|
Vary:
|
@@ -39,7 +41,9 @@ http_interactions:
|
|
39
41
|
X-Content-Type-Options:
|
40
42
|
- nosniff
|
41
43
|
X-Frame-Options:
|
42
|
-
-
|
44
|
+
- ALLOWALL
|
45
|
+
X-Middleware-Start:
|
46
|
+
- t=1540931481020421
|
43
47
|
X-Powered-By:
|
44
48
|
- Phusion Passenger Enterprise 5.0.28
|
45
49
|
X-Pulse-Approved:
|
@@ -49,37 +53,37 @@ http_interactions:
|
|
49
53
|
X-Ratelimit-Limit:
|
50
54
|
- 10s
|
51
55
|
X-Ratelimit-Remaining:
|
52
|
-
- '
|
56
|
+
- '98'
|
53
57
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
58
|
+
- '1540931486'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
60
|
+
- bf206535-96f2-42c3-a9a4-76f3d763ee5e
|
57
61
|
X-Runtime:
|
58
|
-
- '0.
|
59
|
-
X-
|
60
|
-
-
|
62
|
+
- '0.122913'
|
63
|
+
X-Served-By:
|
64
|
+
- api11
|
61
65
|
Content-Length:
|
62
66
|
- '1701'
|
63
67
|
Expires:
|
64
|
-
-
|
68
|
+
- Tue, 30 Oct 2018 20:31:21 GMT
|
65
69
|
Cache-Control:
|
66
70
|
- max-age=0, no-cache, no-store
|
67
71
|
Pragma:
|
68
72
|
- no-cache
|
69
73
|
Date:
|
70
|
-
-
|
74
|
+
- Tue, 30 Oct 2018 20:31:21 GMT
|
71
75
|
Connection:
|
72
76
|
- keep-alive
|
73
|
-
|
74
|
-
-
|
77
|
+
Use-Proxy:
|
78
|
+
- 'True'
|
75
79
|
body:
|
76
80
|
encoding: UTF-8
|
77
|
-
string: '{"results":[{"slug":"basic_12","path":"/basic_12","status":"unlisted","site_slug":"
|
78
|
-
12","headline":"Basic 12","title":"Basic 12 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":110,"content":null},{"slug":"basic_11","path":"/basic_11","status":"unlisted","site_slug":"
|
79
|
-
11","headline":"Basic 11","title":"Basic 11 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":109,"content":null},{"slug":"basic_10","path":"/basic_10","status":"unlisted","site_slug":"
|
80
|
-
10","headline":"Basic 10","title":"Basic 10 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":108,"content":null},{"slug":"basic_9","path":"/basic_9","status":"unlisted","site_slug":"
|
81
|
-
9","headline":"Basic 9","title":"Basic 9 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":107,"content":null},{"slug":"basic_8","path":"/basic_8","status":"unlisted","site_slug":"
|
82
|
-
8","headline":"Basic 8","title":"Basic 8 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":106,"content":null}],"next":"/api/v1/sites/
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
81
|
+
string: '{"results":[{"slug":"basic_12","path":"/basic_12","status":"unlisted","site_slug":"testsite","name":"Basic
|
82
|
+
12","headline":"Basic 12","title":"Basic 12 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":110,"content":null},{"slug":"basic_11","path":"/basic_11","status":"unlisted","site_slug":"testsite","name":"Basic
|
83
|
+
11","headline":"Basic 11","title":"Basic 11 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":109,"content":null},{"slug":"basic_10","path":"/basic_10","status":"unlisted","site_slug":"testsite","name":"Basic
|
84
|
+
10","headline":"Basic 10","title":"Basic 10 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":108,"content":null},{"slug":"basic_9","path":"/basic_9","status":"unlisted","site_slug":"testsite","name":"Basic
|
85
|
+
9","headline":"Basic 9","title":"Basic 9 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":107,"content":null},{"slug":"basic_8","path":"/basic_8","status":"unlisted","site_slug":"testsite","name":"Basic
|
86
|
+
8","headline":"Basic 8","title":"Basic 8 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":106,"content":null}],"next":"/api/v1/sites/testsite/pages/basic_pages?__nonce=tnHZBeItEJEadJKW-lerRg\u0026__token=APRyDDzee5rn5zmkdWQbp-CoMuliTas2BjygYwo8Gq3P\u0026limit=5","prev":"/api/v1/sites/testsite/pages/basic_pages?__nonce=CVvuPUtTqo8pMqQ1ffIGPA\u0026__token=AHedyRZyfUUbVEY79DfNVxp7Fd3oD3DiZ-Dr4LUqfAM8\u0026limit=5"}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Tue, 30 Oct 2018 20:31:21 GMT
|
85
89
|
recorded_with: VCR 2.9.3
|
@@ -2,36 +2,38 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://testnation.nationbuilder.com/api/v1/sites/testsite/pages/basic_pages?limit=11
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.7.0.1, ruby 2.1
|
11
|
+
- HTTPClient/1.0 (2.7.0.1, ruby 2.5.1 (2018-03-29))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Tue, 30 Oct 2018 20:31:20 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Bearer 03c22256c06ed11f6bee83673addf26e02a86caa1a5127f4e0815be7223fe4a3
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.7 (Ubuntu)
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Etag:
|
28
|
-
- W/"
|
28
|
+
- W/"f0c238b14c726803333f30faa1c36eb1-gzip"
|
29
29
|
Nation-Ratelimit-Limit:
|
30
30
|
- '999999'
|
31
31
|
Nation-Ratelimit-Remaining:
|
32
32
|
- '999999'
|
33
33
|
Nation-Ratelimit-Reset:
|
34
|
-
- '
|
34
|
+
- '1540944000'
|
35
|
+
Server:
|
36
|
+
- Apache/2.4.7 (Ubuntu)
|
35
37
|
Status:
|
36
38
|
- 200 OK
|
37
39
|
Vary:
|
@@ -39,7 +41,9 @@ http_interactions:
|
|
39
41
|
X-Content-Type-Options:
|
40
42
|
- nosniff
|
41
43
|
X-Frame-Options:
|
42
|
-
-
|
44
|
+
- ALLOWALL
|
45
|
+
X-Middleware-Start:
|
46
|
+
- t=1540931480515057
|
43
47
|
X-Powered-By:
|
44
48
|
- Phusion Passenger Enterprise 5.0.28
|
45
49
|
X-Pulse-Approved:
|
@@ -49,39 +53,39 @@ http_interactions:
|
|
49
53
|
X-Ratelimit-Limit:
|
50
54
|
- 10s
|
51
55
|
X-Ratelimit-Remaining:
|
52
|
-
- '
|
56
|
+
- '99'
|
53
57
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
58
|
+
- '1540931490'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
60
|
+
- 0c5333c7-7383-4216-9f7a-e9263a8e6f96
|
57
61
|
X-Runtime:
|
58
|
-
- '0.
|
59
|
-
X-
|
60
|
-
-
|
62
|
+
- '0.094467'
|
63
|
+
X-Served-By:
|
64
|
+
- api11
|
61
65
|
Content-Length:
|
62
66
|
- '1158'
|
63
67
|
Expires:
|
64
|
-
-
|
68
|
+
- Tue, 30 Oct 2018 20:31:20 GMT
|
65
69
|
Cache-Control:
|
66
70
|
- max-age=0, no-cache, no-store
|
67
71
|
Pragma:
|
68
72
|
- no-cache
|
69
73
|
Date:
|
70
|
-
-
|
74
|
+
- Tue, 30 Oct 2018 20:31:20 GMT
|
71
75
|
Connection:
|
72
76
|
- keep-alive
|
73
|
-
|
74
|
-
-
|
77
|
+
Use-Proxy:
|
78
|
+
- 'True'
|
75
79
|
body:
|
76
80
|
encoding: UTF-8
|
77
|
-
string: '{"results":[{"slug":"basic_1","path":"/basic_1","status":"unlisted","site_slug":"
|
78
|
-
1","headline":"Basic 1","title":"Basic 1 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":99,"content":null},{"slug":"about","path":"/","status":"published","site_slug":"
|
81
|
+
string: '{"results":[{"slug":"basic_1","path":"/basic_1","status":"unlisted","site_slug":"testsite","name":"Basic
|
82
|
+
1","headline":"Basic 1","title":"Basic 1 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":99,"content":null},{"slug":"about","path":"/","status":"published","site_slug":"testsite","name":"About","headline":"About
|
79
83
|
your nation","title":"About - Test site","excerpt":"","author_id":1,"published_at":"2013-07-08T18:07:00Z","external_id":null,"tags":[],"id":98,"content":"\u003cp\u003eThis
|
80
84
|
is where you tell everyone about your nation. Explain who you are and what
|
81
85
|
you would like people to do. \u003c/p\u003e\r\n\u003cp\u003e \u003c/p\u003e\r\n\u003cp\u003e\u003cstrong\u003eTo
|
82
86
|
change this content, click \"Edit this page\" in the Supporter Nav on the
|
83
87
|
right,\u003cbr\u003eor from your Control Panel navigate to Websites \u0026gt;
|
84
|
-
[about] \u0026gt; Content.\u003c/strong\u003e\u003c/p\u003e"}],"next":null,"prev":"/api/v1/sites/
|
85
|
-
http_version:
|
86
|
-
recorded_at:
|
88
|
+
[about] \u0026gt; Content.\u003c/strong\u003e\u003c/p\u003e"}],"next":null,"prev":"/api/v1/sites/testsite/pages/basic_pages?__nonce=3FjC9RMiBJ1JLokUYO_nMA\u0026__token=AMkccEmidlam_gzpi8opc2vIIpfOPX5oChdaSJcBFnE0\u0026limit=11"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 30 Oct 2018 20:31:20 GMT
|
87
91
|
recorded_with: VCR 2.9.3
|
@@ -2,36 +2,38 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://
|
5
|
+
uri: https://testnation.nationbuilder.com/api/v1/people/search?custom_values%5Bgraduation_year%5D=2008&first_name=Alex&limit=2
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- HTTPClient/1.0 (2.7.0.1, ruby 2.1
|
11
|
+
- HTTPClient/1.0 (2.7.0.1, ruby 2.5.1 (2018-03-29))
|
12
12
|
Accept:
|
13
13
|
- application/json
|
14
14
|
Date:
|
15
|
-
-
|
15
|
+
- Tue, 30 Oct 2018 20:20:37 GMT
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Authorization:
|
19
|
+
- Bearer 03c22256c06ed11f6bee83673addf26e02a86caa1a5127f4e0815be7223fe4a3
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 200
|
21
23
|
message: OK
|
22
24
|
headers:
|
23
|
-
Server:
|
24
|
-
- Apache/2.4.7 (Ubuntu)
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Etag:
|
28
|
-
- W/"
|
28
|
+
- W/"3481f6fe1b20ecf9888593cf0e1ec0b6-gzip"
|
29
29
|
Nation-Ratelimit-Limit:
|
30
30
|
- '999999'
|
31
31
|
Nation-Ratelimit-Remaining:
|
32
32
|
- '999999'
|
33
33
|
Nation-Ratelimit-Reset:
|
34
|
-
- '
|
34
|
+
- '1540944000'
|
35
|
+
Server:
|
36
|
+
- Apache/2.4.7 (Ubuntu)
|
35
37
|
Status:
|
36
38
|
- 200 OK
|
37
39
|
Vary:
|
@@ -39,7 +41,9 @@ http_interactions:
|
|
39
41
|
X-Content-Type-Options:
|
40
42
|
- nosniff
|
41
43
|
X-Frame-Options:
|
42
|
-
-
|
44
|
+
- ALLOWALL
|
45
|
+
X-Middleware-Start:
|
46
|
+
- t=1540930838114489
|
43
47
|
X-Powered-By:
|
44
48
|
- Phusion Passenger Enterprise 5.0.28
|
45
49
|
X-Pulse-Approved:
|
@@ -49,43 +53,32 @@ http_interactions:
|
|
49
53
|
X-Ratelimit-Limit:
|
50
54
|
- 10s
|
51
55
|
X-Ratelimit-Remaining:
|
52
|
-
- '
|
56
|
+
- '99'
|
53
57
|
X-Ratelimit-Reset:
|
54
|
-
- '
|
58
|
+
- '1540930848'
|
55
59
|
X-Request-Id:
|
56
|
-
-
|
60
|
+
- '078e950f-e13c-435e-8c70-250e95ac6efe'
|
57
61
|
X-Runtime:
|
58
|
-
- '0.
|
59
|
-
X-
|
60
|
-
-
|
62
|
+
- '0.126909'
|
63
|
+
X-Served-By:
|
64
|
+
- api10
|
61
65
|
Content-Length:
|
62
|
-
- '
|
66
|
+
- '2785'
|
63
67
|
Expires:
|
64
|
-
-
|
68
|
+
- Tue, 30 Oct 2018 20:20:38 GMT
|
65
69
|
Cache-Control:
|
66
70
|
- max-age=0, no-cache, no-store
|
67
71
|
Pragma:
|
68
72
|
- no-cache
|
69
73
|
Date:
|
70
|
-
-
|
74
|
+
- Tue, 30 Oct 2018 20:20:38 GMT
|
71
75
|
Connection:
|
72
76
|
- keep-alive
|
73
|
-
|
74
|
-
-
|
77
|
+
Use-Proxy:
|
78
|
+
- 'True'
|
75
79
|
body:
|
76
80
|
encoding: UTF-8
|
77
|
-
string: '{"results":[{"
|
78
|
-
23","headline":"Basic 23","title":"Basic 23 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":121,"content":null},{"slug":"basic_22","path":"/basic_22","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
79
|
-
22","headline":"Basic 22","title":"Basic 22 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":120,"content":null},{"slug":"basic_21","path":"/basic_21","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
80
|
-
21","headline":"Basic 21","title":"Basic 21 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":119,"content":null},{"slug":"basic_20","path":"/basic_20","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
81
|
-
20","headline":"Basic 20","title":"Basic 20 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":118,"content":null},{"slug":"basic_19","path":"/basic_19","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
82
|
-
19","headline":"Basic 19","title":"Basic 19 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":117,"content":null},{"slug":"basic_18","path":"/basic_18","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
83
|
-
18","headline":"Basic 18","title":"Basic 18 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":116,"content":null},{"slug":"basic_17","path":"/basic_17","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
84
|
-
17","headline":"Basic 17","title":"Basic 17 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":115,"content":null},{"slug":"basic_16","path":"/basic_16","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
85
|
-
16","headline":"Basic 16","title":"Basic 16 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":114,"content":null},{"slug":"basic_15","path":"/basic_15","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
86
|
-
15","headline":"Basic 15","title":"Basic 15 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":113,"content":null},{"slug":"basic_14","path":"/basic_14","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
87
|
-
14","headline":"Basic 14","title":"Basic 14 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":112,"content":null},{"slug":"basic_13","path":"/basic_13","status":"unlisted","site_slug":"organizeralexandreschmitt","name":"Basic
|
88
|
-
13","headline":"Basic 13","title":"Basic 13 - Test site","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":111,"content":null}],"next":"/api/v1/sites/organizeralexandreschmitt/pages/basic_pages?__nonce=rRTZyJ1Q1DTwfydcPslJKQ\u0026__token=ADkN8CRnANjq04HdDFL4YXS8ACHTkhch-5eyGVn-SpAN\u0026limit=11","prev":null}'
|
81
|
+
string: '{"results":[{"birthdate":null,"city_district":null,"civicrm_id":null,"county_district":null,"county_file_id":null,"created_at":"2018-10-29T19:09:52Z","datatrust_id":null,"do_not_call":false,"do_not_contact":false,"dw_id":null,"email":"alexdoe@exampleschool.edu","email_opt_in":true,"employer":"","external_id":null,"federal_district":null,"fire_district":null,"first_name":"Alex","has_facebook":false,"id":352989,"is_twitter_follower":false,"is_volunteer":false,"judicial_district":null,"labour_region":null,"last_name":"Doe","linkedin_id":null,"mobile":"","mobile_opt_in":true,"middle_name":"","nbec_guid":null,"ngp_id":null,"note":"","occupation":"","party":"","pf_strat_id":null,"phone":"","precinct_id":null,"primary_address":null,"profile_image_url_ssl":"https://d3n8a8pro7vhmx.cloudfront.net/assets/notifier/profile-avatar.png","recruiter_id":null,"rnc_id":null,"rnc_regid":null,"salesforce_id":null,"school_district":null,"school_sub_district":null,"sex":"","signup_type":0,"state_file_id":null,"state_lower_district":null,"state_upper_district":null,"support_level":null,"supranational_district":null,"tags":[],"twitter_id":null,"twitter_name":null,"updated_at":"2018-10-29T19:10:05Z","van_id":null,"village_district":null,"ward":null,"work_phone_number":"","graduation_year":2008.0},{"birthdate":null,"city_district":null,"civicrm_id":null,"county_district":null,"county_file_id":null,"created_at":"2018-05-31T00:07:29Z","datatrust_id":null,"do_not_call":false,"do_not_contact":false,"dw_id":null,"email":"alex@exampleschool.edu","email_opt_in":true,"employer":"","external_id":null,"federal_district":null,"fire_district":null,"first_name":"Alex","has_facebook":false,"id":352955,"is_twitter_follower":false,"is_volunteer":false,"judicial_district":null,"labour_region":null,"last_name":"Smith","linkedin_id":null,"mobile":"","mobile_opt_in":true,"middle_name":"","nbec_guid":null,"ngp_id":null,"note":null,"occupation":"","party":"","pf_strat_id":null,"phone":"","precinct_id":null,"primary_address":null,"profile_image_url_ssl":"https://d3n8a8pro7vhmx.cloudfront.net/assets/notifier/profile-avatar.png","recruiter_id":null,"rnc_id":null,"rnc_regid":null,"salesforce_id":null,"school_district":null,"school_sub_district":null,"sex":"","signup_type":0,"state_file_id":null,"state_lower_district":null,"state_upper_district":null,"support_level":null,"supranational_district":null,"tags":[],"twitter_id":null,"twitter_name":null,"updated_at":"2018-10-29T19:09:34Z","van_id":null,"village_district":null,"ward":null,"work_phone_number":"","graduation_year":2008.0}],"next":"/api/v1/people/search?__nonce=cmDsSJ54eXx2snX-qOjspw\u0026__token=AEQi82Ef8T3_0Xks78eam-vC-YYtqVmOZai4CHntX0hH\u0026custom_values%5Bgraduation_year%5D=2008\u0026first_name=Alex\u0026limit=2","prev":null}'
|
89
82
|
http_version:
|
90
|
-
recorded_at:
|
83
|
+
recorded_at: Tue, 30 Oct 2018 20:20:38 GMT
|
91
84
|
recorded_with: VCR 2.9.3
|