nationbuilder-rb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d508551240eaab11e3623d9c907718eb7337fa72
4
- data.tar.gz: cff123c70c157f9d4bc6c03433ff4a8a0d7beedd
3
+ metadata.gz: 31c536feb505156b3dc620ce92f08536f38b3566
4
+ data.tar.gz: 92d21ea8210db87577be3f60e0745e604ad0e966
5
5
  SHA512:
6
- metadata.gz: a8d3c439c497f1482456cc040ebe78394457041c0c6059f4f2d8a25ea8d04d49c8c3ab90761690d27b98aaaed359820f06290897e241c4473556ddd1cdc72974
7
- data.tar.gz: ddc392a8a7c7b8470810be8498ce24d128a5e3c40493cb0889f670e7d10bc62464757a2c5822664b7d875e3a26857fed655e9947e5575c98543e4ac942f425dc
6
+ metadata.gz: 2860fb2d86fee42ccf03045c58a02cba8895544a895b62b01cc1a8742fe5ab1e091e92ec16243ad8bbad9f818732ef8a80797b8987fb421701e2c0e524e6f6f7
7
+ data.tar.gz: 2ecb40cfe1880408b5f606a205f84e7cef8aa480a95fb657aed42943b208c94bf307294166e7f2ba9b038ba0cc897fd6b466d8ffe837bf79077ce13b3ecff629
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -43,12 +43,14 @@ class NationBuilder::Client
43
43
  header: {
44
44
  'Accept' => 'application/json',
45
45
  'Content-Type' => 'application/json'
46
+ },
47
+ query: {
48
+ access_token: @api_key
46
49
  }
47
50
  }
48
51
 
49
52
  if method.http_method == :get
50
- request_args[:query] = nonmethod_args
51
- request_args[:query][:access_token] = @api_key
53
+ request_args[:query].merge!(nonmethod_args)
52
54
  else
53
55
  nonmethod_args[:access_token] = @api_key
54
56
  request_args[:body] = JSON(nonmethod_args)
@@ -2,16 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: nationbuilder-rb 0.4.0 ruby lib
5
+ # stub: nationbuilder-rb 0.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "nationbuilder-rb"
9
- s.version = "0.4.0"
9
+ s.version = "0.4.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
12
  s.authors = ["David Huie"]
14
- s.date = "2014-09-06"
13
+ s.date = "2014-10-07"
15
14
  s.description = "A Ruby client to the NationBuilder API"
16
15
  s.email = "david@nationbuilder.com"
17
16
  s.executables = ["nbdoc"]
@@ -43,13 +42,13 @@ Gem::Specification.new do |s|
43
42
  "spec/fixtures/delete.yml",
44
43
  "spec/fixtures/parametered_get.yml",
45
44
  "spec/fixtures/parametered_post.yml",
46
- "spec/fixtures/parametered_put.yml",
47
45
  "spec/nationbuilder_client_spec.rb",
48
46
  "spec/spec_helper.rb"
49
47
  ]
50
48
  s.homepage = "http://github.com/3dna/nationbuilder-rb"
51
49
  s.licenses = ["MIT"]
52
- s.rubygems_version = "2.2.2"
50
+ s.require_paths = ["lib"]
51
+ s.rubygems_version = "2.1.11"
53
52
  s.summary = "A Ruby client to the NationBuilder API"
54
53
 
55
54
  if s.respond_to? :specification_version then
@@ -2,17 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://dh.nationbuilder.com/api/v1/people/15
5
+ uri: https://dh.nationbuilder.com/api/v1/people/24?access_token=6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"access_token":"6e516b5d9a3d21b3cc079bc303c01aae3d59c8d4a7e9e6d2acfc11dada0e054e"}'
8
+ string: '{"access_token":"6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - HTTPClient/1.0 (2.4.0, ruby 2.0.0 (2013-11-22))
12
12
  Accept:
13
13
  - application/json
14
14
  Date:
15
- - Wed, 25 Jun 2014 22:41:37 GMT
15
+ - Tue, 07 Oct 2014 17:43:46 GMT
16
16
  Content-Type:
17
17
  - application/json
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - cloudflare-nginx
25
25
  Date:
26
- - Wed, 25 Jun 2014 22:41:39 GMT
26
+ - Tue, 07 Oct 2014 17:43:50 GMT
27
27
  Content-Type:
28
28
  - application/octet-stream
29
29
  Content-Length:
@@ -31,35 +31,41 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Set-Cookie:
34
- - __cfduid=d4ac3918ff3dbcc509787eadf8b8b90451403736098139; expires=Mon, 23-Dec-2019
34
+ - __cfduid=d1d7ffdf9caac3883c7d2a972e0cf26f11412703826586; expires=Mon, 23-Dec-2019
35
35
  23:50:00 GMT; path=/; domain=.nationbuilder.com; HttpOnly
36
- X-Ua-Compatible:
37
- - IE=Edge,chrome=1
38
36
  Cache-Control:
39
37
  - no-cache
40
38
  Nation-Ratelimit-Limit:
41
- - '10000'
39
+ - '-1'
42
40
  Nation-Ratelimit-Remaining:
43
- - '9968'
41
+ - '0'
44
42
  Nation-Ratelimit-Reset:
45
- - '1403740800'
46
- X-Request-Id:
47
- - f00da219be79923c08a78e821cc4897b
48
- X-Runtime:
49
- - '0.994571'
50
- X-Rack-Cache:
51
- - invalidate, pass
52
- X-Powered-By:
53
- - Phusion Passenger 4.0.23
43
+ - '1412726400'
54
44
  Status:
55
45
  - 204 No Content
46
+ X-Powered-By:
47
+ - Phusion Passenger 4.0.48
48
+ X-Rack-Cache:
49
+ - invalidate, pass
50
+ X-Ratelimit-Limit:
51
+ - 33s
52
+ X-Ratelimit-Remaining:
53
+ - '49997'
54
+ X-Ratelimit-Reset:
55
+ - '32.038486321'
56
+ X-Request-Id:
57
+ - d5ab16fa2e0ac355cecdab2324422be0
58
+ X-Runtime:
59
+ - '3.853476'
60
+ X-Ua-Compatible:
61
+ - IE=Edge,chrome=1
56
62
  Via:
57
63
  - 1.1 nationbuilder.com
58
64
  Cf-Ray:
59
- - 1404ac75519c0d67-LAX
65
+ - 175be7242f0d0679-LAX
60
66
  body:
61
67
  encoding: UTF-8
62
68
  string: ''
63
69
  http_version:
64
- recorded_at: Wed, 25 Jun 2014 22:41:39 GMT
70
+ recorded_at: Tue, 07 Oct 2014 17:43:50 GMT
65
71
  recorded_with: VCR 2.9.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://dh.nationbuilder.com/api/v1/sites/dh/pages/basic_pages?access_token=6e516b5d9a3d21b3cc079bc303c01aae3d59c8d4a7e9e6d2acfc11dada0e054e
5
+ uri: https://dh.nationbuilder.com/api/v1/sites/dh/pages/basic_pages?access_token=6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: ''
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - application/json
14
14
  Date:
15
- - Wed, 25 Jun 2014 22:28:30 GMT
15
+ - Tue, 07 Oct 2014 17:43:45 GMT
16
16
  Content-Type:
17
17
  - application/json
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - cloudflare-nginx
25
25
  Date:
26
- - Wed, 25 Jun 2014 22:28:31 GMT
26
+ - Tue, 07 Oct 2014 17:43:45 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Transfer-Encoding:
@@ -31,49 +31,59 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Set-Cookie:
34
- - __cfduid=d32a8837f08e39176e4d1ed146327e7201403735310572; expires=Mon, 23-Dec-2019
34
+ - __cfduid=dc85ea66763b55e2f4cf2e6db2b9fb1e41412703825613; expires=Mon, 23-Dec-2019
35
35
  23:50:00 GMT; path=/; domain=.nationbuilder.com; HttpOnly
36
- X-Ua-Compatible:
37
- - IE=Edge,chrome=1
38
36
  Cache-Control:
39
37
  - max-age=0, private, must-revalidate
38
+ Etag:
39
+ - W/"a9e3c4325c7d65e5dff1402691d9f2dc"
40
40
  Nation-Ratelimit-Limit:
41
- - '10000'
41
+ - '-1'
42
42
  Nation-Ratelimit-Remaining:
43
- - '9973'
43
+ - '0'
44
44
  Nation-Ratelimit-Reset:
45
- - '1403740800'
46
- X-Request-Id:
47
- - c833875bc9d08cf43ca93454d0a4f70f
48
- X-Runtime:
49
- - '0.697364'
50
- X-Rack-Cache:
51
- - miss
52
- X-Powered-By:
53
- - Phusion Passenger 4.0.23
45
+ - '1412726400'
54
46
  Status:
55
47
  - 200 OK
56
48
  Vary:
57
49
  - Accept-Encoding
50
+ X-Powered-By:
51
+ - Phusion Passenger 4.0.48
52
+ X-Rack-Cache:
53
+ - miss
54
+ X-Ratelimit-Limit:
55
+ - 33s
56
+ X-Ratelimit-Remaining:
57
+ - '49999'
58
+ X-Ratelimit-Reset:
59
+ - '32.999994763'
60
+ X-Request-Id:
61
+ - 76d4b8c496c8a13cc7e2923c29b7fd21
62
+ X-Runtime:
63
+ - '0.084677'
64
+ X-Ua-Compatible:
65
+ - IE=Edge,chrome=1
58
66
  Via:
59
67
  - 1.1 nationbuilder.com
60
68
  Cf-Ray:
61
- - 1404993b14380d67-LAX
69
+ - 175be71e1eec0679-LAX
62
70
  body:
63
71
  encoding: UTF-8
64
- string: '{"page":1,"total_pages":1,"per_page":10,"total":1,"results":[{"slug":"about","path":"/about","status":"published","site_slug":"dh","name":"About","headline":"About","title":"About
65
- - dh","excerpt":"","author_id":2,"published_at":"2013-07-08T11:07:00-07:00","external_id":null,"tags":[],"id":1,"content":"<div
66
- style=\"float: right; margin: 0 0 10px 25px;\"><img class=\"img-circle\" src=\"boats.jpg\"
67
- alt=\"\"></div>\r\n<p>This is where you tell everyone what your blog is about.
68
- Explain what the intended purpose of your blog is, if there is one. If multiple
69
- people will be writing for your blog, you might consider posting photos and
70
- bios of the contributors.</p>\r\n<p>Proin libero diam, consequat ut nisl vestibulum,
71
- commodo scelerisque lacus. In vehicula, est quis rhoncus tristique, dolor
72
- sapien aliquam arcu, ut vulputate quam enim quis augue. Phasellus id nunc
73
- vitae lectus dapibus viverra malesuada at nibh. Suspendisse sagittis odio
74
- non ipsum feugiat porta.</p>\r\n<p>\u00a0</p>\r\n<p><strong>To change this
75
- content, click \"Edit this page\" in the Supporter Nav on the right,<br>or
76
- from your Control Panel navigate to Websites &gt; [about] &gt; Content.</strong></p>"}]}'
72
+ string: '{"page":1,"total_pages":1,"per_page":10,"total":2,"results":[{"slug":"test","path":"/test","status":"drafted","site_slug":"dh","name":"test","headline":"test","title":"test
73
+ - dh","excerpt":null,"author_id":1,"published_at":null,"external_id":null,"tags":[],"id":3,"content":null},{"slug":"about","path":"/about","status":"published","site_slug":"dh","name":"About","headline":"About","title":"About
74
+ - dh","excerpt":"","author_id":2,"published_at":"2013-07-08T11:07:00-07:00","external_id":null,"tags":[],"id":1,"content":"\u003Cdiv
75
+ style=\"float: right; margin: 0 0 10px 25px;\"\u003E\u003Cimg class=\"img-circle\"
76
+ src=\"boats.jpg\" alt=\"\"\u003E\u003C/div\u003E\r\n\u003Cp\u003EThis is where
77
+ you tell everyone what your blog is about. Explain what the intended purpose
78
+ of your blog is, if there is one. If multiple people will be writing for your
79
+ blog, you might consider posting photos and bios of the contributors.\u003C/p\u003E\r\n\u003Cp\u003EProin
80
+ libero diam, consequat ut nisl vestibulum, commodo scelerisque lacus. In vehicula,
81
+ est quis rhoncus tristique, dolor sapien aliquam arcu, ut vulputate quam enim
82
+ quis augue. Phasellus id nunc vitae lectus dapibus viverra malesuada at nibh.
83
+ Suspendisse sagittis odio non ipsum feugiat porta.\u003C/p\u003E\r\n\u003Cp\u003E\u00a0\u003C/p\u003E\r\n\u003Cp\u003E\u003Cstrong\u003ETo
84
+ change this content, click \"Edit this page\" in the Supporter Nav on the
85
+ right,\u003Cbr\u003Eor from your Control Panel navigate to Websites \u0026gt;
86
+ [about] \u0026gt; Content.\u003C/strong\u003E\u003C/p\u003E"}],"next":null,"prev":null}'
77
87
  http_version:
78
- recorded_at: Wed, 25 Jun 2014 22:28:31 GMT
88
+ recorded_at: Tue, 07 Oct 2014 17:43:46 GMT
79
89
  recorded_with: VCR 2.9.2
@@ -2,28 +2,28 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://dh.nationbuilder.com/api/v1/people
5
+ uri: https://dh.nationbuilder.com/api/v1/people?access_token=6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"person":{"email":"bob@example.com","last_name":"Smith","first_name":"Bob"},"access_token":"6e516b5d9a3d21b3cc079bc303c01aae3d59c8d4a7e9e6d2acfc11dada0e054e"}'
8
+ string: '{"person":{"email":"bob@example.com","last_name":"Smith","first_name":"Bob"},"access_token":"6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2"}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - HTTPClient/1.0 (2.4.0, ruby 2.0.0 (2013-11-22))
12
12
  Accept:
13
13
  - application/json
14
14
  Date:
15
- - Wed, 25 Jun 2014 22:35:22 GMT
15
+ - Tue, 07 Oct 2014 17:43:46 GMT
16
16
  Content-Type:
17
17
  - application/json
18
18
  response:
19
19
  status:
20
- code: 201
21
- message: Created
20
+ code: 409
21
+ message: Conflict
22
22
  headers:
23
23
  Server:
24
24
  - cloudflare-nginx
25
25
  Date:
26
- - Wed, 25 Jun 2014 22:35:22 GMT
26
+ - Tue, 07 Oct 2014 17:43:46 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Transfer-Encoding:
@@ -31,38 +31,45 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Set-Cookie:
34
- - __cfduid=d184a711d4f638864b5e1fa438601ebdc1403735721919; expires=Mon, 23-Dec-2019
34
+ - __cfduid=d9d6b13be75d309e8000dd6fb3503b7841412703826072; expires=Mon, 23-Dec-2019
35
35
  23:50:00 GMT; path=/; domain=.nationbuilder.com; HttpOnly
36
- X-Ua-Compatible:
37
- - IE=Edge,chrome=1
38
36
  Cache-Control:
39
- - max-age=0, private, must-revalidate
37
+ - no-cache
40
38
  Nation-Ratelimit-Limit:
41
- - '10000'
39
+ - '-1'
42
40
  Nation-Ratelimit-Remaining:
43
- - '9972'
41
+ - '0'
44
42
  Nation-Ratelimit-Reset:
45
- - '1403740800'
46
- X-Request-Id:
47
- - 34e7f148285faf579d2885dee6cb5571
48
- X-Runtime:
49
- - '0.715257'
50
- X-Rack-Cache:
51
- - invalidate, pass
52
- X-Powered-By:
53
- - Phusion Passenger 4.0.23
43
+ - '1412726400'
54
44
  Status:
55
- - 201 Created
45
+ - 409 Conflict
56
46
  Vary:
57
47
  - Accept-Encoding
48
+ X-Powered-By:
49
+ - Phusion Passenger 4.0.48
50
+ X-Rack-Cache:
51
+ - invalidate, pass
52
+ X-Ratelimit-Limit:
53
+ - 33s
54
+ X-Ratelimit-Remaining:
55
+ - '49998'
56
+ X-Ratelimit-Reset:
57
+ - '32.552308596'
58
+ X-Request-Id:
59
+ - ea1b7110a20924063daa16fd2c3f63e0
60
+ X-Runtime:
61
+ - '0.102640'
62
+ X-Ua-Compatible:
63
+ - IE=Edge,chrome=1
58
64
  Via:
59
65
  - 1.1 nationbuilder.com
60
66
  Cf-Ray:
61
- - 1404a345f7b20d67-LAX
67
+ - 175be720f83e0679-LAX
62
68
  body:
63
69
  encoding: UTF-8
64
- string: '{"person":{"birthdate":null,"city_district":null,"civicrm_id":null,"county_district":null,"county_file_id":null,"created_at":"2014-06-25T15:35:22-07:00","do_not_call":false,"do_not_contact":false,"dw_id":null,"email":"bob@example.com","email_opt_in":true,"employer":null,"external_id":null,"federal_district":null,"fire_district":null,"first_name":"Bob","has_facebook":false,"id":15,"is_twitter_follower":false,"is_volunteer":false,"judicial_district":null,"labour_region":null,"last_name":"Smith","linkedin_id":null,"mobile":null,"mobile_opt_in":true,"nbec_guid":null,"ngp_id":null,"note":null,"occupation":null,"party":null,"pf_strat_id":null,"phone":null,"precinct_id":null,"primary_address":null,"recruiter_id":null,"rnc_id":null,"rnc_regid":null,"salesforce_id":null,"school_district":null,"school_sub_district":null,"sex":null,"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":"2014-06-25T15:35:22-07:00","van_id":null,"village_district":null,"active_customer_expires_at":null,"active_customer_started_at":null,"author":null,"author_id":null,"auto_import_id":null,"availability":null,"banned_at":null,"billing_address":null,"bio":null,"call_status_id":null,"call_status_name":null,"capital_amount_in_cents":0,"children_count":0,"church":null,"city_sub_district":null,"closed_invoices_amount_in_cents":null,"closed_invoices_count":null,"contact_status_id":null,"contact_status_name":null,"could_vote_status":null,"demo":null,"donations_amount_in_cents":0,"donations_amount_this_cycle_in_cents":0,"donations_count":0,"donations_count_this_cycle":0,"donations_pledged_amount_in_cents":0,"donations_raised_amount_in_cents":0,"donations_raised_amount_this_cycle_in_cents":0,"donations_raised_count":0,"donations_raised_count_this_cycle":0,"donations_to_raise_amount_in_cents":0,"email1":"bob@example.com","email1_is_bad":false,"email2":null,"email2_is_bad":false,"email3":null,"email3_is_bad":false,"email4":null,"email4_is_bad":false,"ethnicity":null,"facebook_address":null,"facebook_profile_url":null,"facebook_updated_at":null,"facebook_username":null,"fax_number":null,"federal_donotcall":false,"first_donated_at":null,"first_fundraised_at":null,"first_invoice_at":null,"first_prospect_at":null,"first_recruited_at":null,"first_supporter_at":"2014-06-25T15:35:22-07:00","first_volunteer_at":null,"full_name":"Bob
65
- Smith","home_address":null,"import_id":null,"inferred_party":null,"inferred_support_level":null,"invoice_payments_amount_in_cents":0,"invoice_payments_referred_amount_in_cents":0,"invoices_amount_in_cents":null,"invoices_count":null,"is_deceased":false,"is_donor":false,"is_fundraiser":false,"is_ignore_donation_limits":false,"is_leaderboardable":true,"is_mobile_bad":false,"is_possible_duplicate":false,"is_profile_private":false,"is_profile_searchable":true,"is_prospect":false,"is_supporter":true,"is_survey_question_private":false,"language":null,"last_call_id":null,"last_contacted_at":null,"last_contacted_by":null,"last_donated_at":null,"last_fundraised_at":null,"last_invoice_at":null,"last_rule_violation_at":null,"legal_name":null,"locale":null,"mailing_address":null,"marital_status":null,"media_market_name":null,"meetup_address":null,"membership_expires_at":null,"membership_level_name":null,"membership_started_at":null,"middle_name":null,"mobile_normalized":null,"nbec_precinct_code":null,"note_updated_at":null,"outstanding_invoices_amount_in_cents":null,"outstanding_invoices_count":null,"overdue_invoices_count":0,"page_slug":null,"parent":null,"parent_id":null,"party_member":false,"phone_normalized":null,"phone_time":null,"precinct_code":null,"precinct_name":null,"prefix":null,"previous_party":null,"primary_email_id":1,"priority_level":null,"priority_level_changed_at":null,"profile_content":null,"profile_content_html":null,"profile_headline":null,"received_capital_amount_in_cents":0,"recruiter":null,"recruits_count":0,"registered_address":null,"registered_at":null,"religion":null,"rule_violations_count":0,"spent_capital_amount_in_cents":0,"submitted_address":null,"subnations":[],"suffix":null,"support_level_changed_at":null,"support_probability_score":null,"turnout_probability_score":null,"twitter_address":null,"twitter_description":null,"twitter_followers_count":null,"twitter_friends_count":null,"twitter_location":null,"twitter_login":null,"twitter_updated_at":null,"twitter_website":null,"unsubscribed_at":null,"user_submitted_address":null,"username":null,"warnings_count":0,"website":null,"work_address":null,"work_phone_number":null},"precinct":null}'
70
+ string: '{"person":{"birthdate":null,"city_district":null,"civicrm_id":null,"county_district":null,"county_file_id":null,"created_at":"2014-10-07T10:31:59-07:00","datatrust_id":null,"do_not_call":false,"do_not_contact":false,"dw_id":null,"email":"bob@example.com","email_opt_in":true,"employer":null,"external_id":null,"federal_district":null,"fire_district":null,"first_name":"Bob","has_facebook":true,"id":24,"is_twitter_follower":false,"is_volunteer":false,"judicial_district":null,"labour_region":null,"last_name":"Smith","linkedin_id":null,"mobile":null,"mobile_opt_in":true,"nbec_guid":null,"ngp_id":null,"note":null,"occupation":null,"party":null,"pf_strat_id":null,"phone":null,"precinct_id":null,"primary_address":null,"profile_image_url_ssl":"https://cloudinary-a.akamaihd.net/nationbuilder/image/twitter/w_73,h_73,c_fill/323013939.jpg","recruiter_id":null,"rnc_id":null,"rnc_regid":null,"salesforce_id":null,"school_district":null,"school_sub_district":null,"sex":null,"state_file_id":null,"state_lower_district":null,"state_upper_district":null,"support_level":null,"supranational_district":null,"tags":[],"twitter_id":"323013939","twitter_name":"Random
71
+ EVE Guy","updated_at":"2014-10-07T10:32:05-07:00","van_id":null,"village_district":null,"active_customer_expires_at":null,"active_customer_started_at":null,"author":null,"author_id":null,"auto_import_id":null,"availability":null,"banned_at":null,"billing_address":null,"bio":"","call_status_id":null,"call_status_name":null,"capital_amount_in_cents":500,"children_count":0,"church":null,"city_sub_district":null,"closed_invoices_amount_in_cents":null,"closed_invoices_count":null,"contact_status_id":null,"contact_status_name":null,"could_vote_status":null,"demo":null,"donations_amount_in_cents":0,"donations_amount_this_cycle_in_cents":0,"donations_count":0,"donations_count_this_cycle":0,"donations_pledged_amount_in_cents":0,"donations_raised_amount_in_cents":0,"donations_raised_amount_this_cycle_in_cents":0,"donations_raised_count":0,"donations_raised_count_this_cycle":0,"donations_to_raise_amount_in_cents":0,"email1":"bob@example.com","email1_is_bad":false,"email2":null,"email2_is_bad":false,"email3":null,"email3_is_bad":false,"email4":null,"email4_is_bad":false,"ethnicity":null,"facebook_address":null,"facebook_profile_url":"http://www.facebook.com/profile.php?id=100004753561959","facebook_updated_at":null,"facebook_username":null,"fax_number":null,"federal_donotcall":false,"first_donated_at":null,"first_fundraised_at":null,"first_invoice_at":null,"first_prospect_at":null,"first_recruited_at":null,"first_supporter_at":"2014-10-07T10:31:59-07:00","first_volunteer_at":null,"full_name":"Bob
72
+ Smith","home_address":null,"import_id":null,"inferred_party":null,"inferred_support_level":null,"invoice_payments_amount_in_cents":0,"invoice_payments_referred_amount_in_cents":0,"invoices_amount_in_cents":null,"invoices_count":null,"is_deceased":false,"is_donor":false,"is_fundraiser":false,"is_ignore_donation_limits":false,"is_leaderboardable":true,"is_mobile_bad":false,"is_possible_duplicate":false,"is_profile_private":false,"is_profile_searchable":true,"is_prospect":false,"is_supporter":true,"is_survey_question_private":false,"language":null,"last_call_id":null,"last_contacted_at":null,"last_contacted_by":null,"last_donated_at":null,"last_fundraised_at":null,"last_invoice_at":null,"last_rule_violation_at":null,"legal_name":null,"locale":null,"mailing_address":null,"marital_status":null,"media_market_name":null,"meetup_address":null,"membership_expires_at":null,"membership_level_name":null,"membership_started_at":null,"middle_name":null,"mobile_normalized":null,"nbec_precinct_code":null,"note_updated_at":null,"outstanding_invoices_amount_in_cents":null,"outstanding_invoices_count":null,"overdue_invoices_count":0,"page_slug":null,"parent":null,"parent_id":null,"party_member":false,"phone_normalized":null,"phone_time":null,"precinct_code":null,"precinct_name":null,"prefix":null,"previous_party":null,"primary_email_id":1,"priority_level":null,"priority_level_changed_at":null,"profile_content":null,"profile_content_html":null,"profile_headline":null,"received_capital_amount_in_cents":500,"recruiter":null,"recruits_count":0,"registered_address":null,"registered_at":null,"religion":null,"rule_violations_count":0,"spent_capital_amount_in_cents":0,"submitted_address":null,"subnations":[],"suffix":null,"support_level_changed_at":null,"support_probability_score":null,"turnout_probability_score":null,"twitter_address":null,"twitter_description":"","twitter_followers_count":10,"twitter_friends_count":21,"twitter_location":"","twitter_login":"RandomEVEGuy","twitter_updated_at":null,"twitter_website":null,"unsubscribed_at":null,"user_submitted_address":null,"username":"randomeveguy","warnings_count":0,"website":null,"work_address":null,"work_phone_number":null},"precinct":null}'
66
73
  http_version:
67
- recorded_at: Wed, 25 Jun 2014 22:35:23 GMT
74
+ recorded_at: Tue, 07 Oct 2014 17:43:46 GMT
68
75
  recorded_with: VCR 2.9.2
@@ -1,12 +1,10 @@
1
- # coding: utf-8
2
-
3
1
  require 'spec_helper'
4
2
 
5
3
  describe NationBuilder::Client do
6
4
 
7
5
  let(:client) do
8
6
  NationBuilder::Client.new('dh',
9
- '6e516b5d9a3d21b3cc079bc303c01aae3d59c8d4a7e9e6d2acfc11dada0e054e')
7
+ '6ed3ab9395daf0e3e39098761e85e8e703aa84921c5c1e32637f6984944cf1f2')
10
8
  end
11
9
 
12
10
  describe '#endpoints' do
@@ -50,8 +48,10 @@ describe NationBuilder::Client do
50
48
 
51
49
  it 'should handle a parametered GET' do
52
50
  VCR.use_cassette('parametered_get') do
53
- client.call(:basic_pages, :index, site_slug: 'dh')
54
- .should eq({"page"=>1, "total_pages"=>1, "per_page"=>10, "total"=>1, "results"=>[{"slug"=>"about", "path"=>"/about", "status"=>"published", "site_slug"=>"dh", "name"=>"About", "headline"=>"About", "title"=>"About - dh", "excerpt"=>"", "author_id"=>2, "published_at"=>"2013-07-08T11:07:00-07:00", "external_id"=>nil, "tags"=>[], "id"=>1, "content"=>"<div style=\"float: right; margin: 0 0 10px 25px;\"><img class=\"img-circle\" src=\"boats.jpg\" alt=\"\"></div>\r\n<p>This is where you tell everyone what your blog is about. Explain what the intended purpose of your blog is, if there is one. If multiple people will be writing for your blog, you might consider posting photos and bios of the contributors.</p>\r\n<p>Proin libero diam, consequat ut nisl vestibulum, commodo scelerisque lacus. In vehicula, est quis rhoncus tristique, dolor sapien aliquam arcu, ut vulputate quam enim quis augue. Phasellus id nunc vitae lectus dapibus viverra malesuada at nibh. Suspendisse sagittis odio non ipsum feugiat porta.</p>\r\n<p> </p>\r\n<p><strong>To change this content, click \"Edit this page\" in the Supporter Nav on the right,<br>or from your Control Panel navigate to Websites &gt; [about] &gt; Content.</strong></p>"}]})
51
+ response = client.call(:basic_pages, :index, site_slug: 'dh')
52
+ response['results'].each do |result|
53
+ result['site_slug'].should eq('dh')
54
+ end
55
55
  end
56
56
  end
57
57
 
@@ -68,29 +68,12 @@ describe NationBuilder::Client do
68
68
  client.call(:people, :create, params)
69
69
  end
70
70
 
71
- response
72
- .should eq({"person"=>{"birthdate"=>nil, "city_district"=>nil, "civicrm_id"=>nil, "county_district"=>nil, "county_file_id"=>nil, "created_at"=>"2014-06-25T15:35:22-07:00", "do_not_call"=>false, "do_not_contact"=>false, "dw_id"=>nil, "email"=>"bob@example.com", "email_opt_in"=>true, "employer"=>nil, "external_id"=>nil, "federal_district"=>nil, "fire_district"=>nil, "first_name"=>"Bob", "has_facebook"=>false, "id"=>15, "is_twitter_follower"=>false, "is_volunteer"=>false, "judicial_district"=>nil, "labour_region"=>nil, "last_name"=>"Smith", "linkedin_id"=>nil, "mobile"=>nil, "mobile_opt_in"=>true, "nbec_guid"=>nil, "ngp_id"=>nil, "note"=>nil, "occupation"=>nil, "party"=>nil, "pf_strat_id"=>nil, "phone"=>nil, "precinct_id"=>nil, "primary_address"=>nil, "recruiter_id"=>nil, "rnc_id"=>nil, "rnc_regid"=>nil, "salesforce_id"=>nil, "school_district"=>nil, "school_sub_district"=>nil, "sex"=>nil, "state_file_id"=>nil, "state_lower_district"=>nil, "state_upper_district"=>nil, "support_level"=>nil, "supranational_district"=>nil, "tags"=>[], "twitter_id"=>nil, "twitter_name"=>nil, "updated_at"=>"2014-06-25T15:35:22-07:00", "van_id"=>nil, "village_district"=>nil, "active_customer_expires_at"=>nil, "active_customer_started_at"=>nil, "author"=>nil, "author_id"=>nil, "auto_import_id"=>nil, "availability"=>nil, "banned_at"=>nil, "billing_address"=>nil, "bio"=>nil, "call_status_id"=>nil, "call_status_name"=>nil, "capital_amount_in_cents"=>0, "children_count"=>0, "church"=>nil, "city_sub_district"=>nil, "closed_invoices_amount_in_cents"=>nil, "closed_invoices_count"=>nil, "contact_status_id"=>nil, "contact_status_name"=>nil, "could_vote_status"=>nil, "demo"=>nil, "donations_amount_in_cents"=>0, "donations_amount_this_cycle_in_cents"=>0, "donations_count"=>0, "donations_count_this_cycle"=>0, "donations_pledged_amount_in_cents"=>0, "donations_raised_amount_in_cents"=>0, "donations_raised_amount_this_cycle_in_cents"=>0, "donations_raised_count"=>0, "donations_raised_count_this_cycle"=>0, "donations_to_raise_amount_in_cents"=>0, "email1"=>"bob@example.com", "email1_is_bad"=>false, "email2"=>nil, "email2_is_bad"=>false, "email3"=>nil, "email3_is_bad"=>false, "email4"=>nil, "email4_is_bad"=>false, "ethnicity"=>nil, "facebook_address"=>nil, "facebook_profile_url"=>nil, "facebook_updated_at"=>nil, "facebook_username"=>nil, "fax_number"=>nil, "federal_donotcall"=>false, "first_donated_at"=>nil, "first_fundraised_at"=>nil, "first_invoice_at"=>nil, "first_prospect_at"=>nil, "first_recruited_at"=>nil, "first_supporter_at"=>"2014-06-25T15:35:22-07:00", "first_volunteer_at"=>nil, "full_name"=>"Bob Smith", "home_address"=>nil, "import_id"=>nil, "inferred_party"=>nil, "inferred_support_level"=>nil, "invoice_payments_amount_in_cents"=>0, "invoice_payments_referred_amount_in_cents"=>0, "invoices_amount_in_cents"=>nil, "invoices_count"=>nil, "is_deceased"=>false, "is_donor"=>false, "is_fundraiser"=>false, "is_ignore_donation_limits"=>false, "is_leaderboardable"=>true, "is_mobile_bad"=>false, "is_possible_duplicate"=>false, "is_profile_private"=>false, "is_profile_searchable"=>true, "is_prospect"=>false, "is_supporter"=>true, "is_survey_question_private"=>false, "language"=>nil, "last_call_id"=>nil, "last_contacted_at"=>nil, "last_contacted_by"=>nil, "last_donated_at"=>nil, "last_fundraised_at"=>nil, "last_invoice_at"=>nil, "last_rule_violation_at"=>nil, "legal_name"=>nil, "locale"=>nil, "mailing_address"=>nil, "marital_status"=>nil, "media_market_name"=>nil, "meetup_address"=>nil, "membership_expires_at"=>nil, "membership_level_name"=>nil, "membership_started_at"=>nil, "middle_name"=>nil, "mobile_normalized"=>nil, "nbec_precinct_code"=>nil, "note_updated_at"=>nil, "outstanding_invoices_amount_in_cents"=>nil, "outstanding_invoices_count"=>nil, "overdue_invoices_count"=>0, "page_slug"=>nil, "parent"=>nil, "parent_id"=>nil, "party_member"=>false, "phone_normalized"=>nil, "phone_time"=>nil, "precinct_code"=>nil, "precinct_name"=>nil, "prefix"=>nil, "previous_party"=>nil, "primary_email_id"=>1, "priority_level"=>nil, "priority_level_changed_at"=>nil, "profile_content"=>nil, "profile_content_html"=>nil, "profile_headline"=>nil, "received_capital_amount_in_cents"=>0, "recruiter"=>nil, "recruits_count"=>0, "registered_address"=>nil, "registered_at"=>nil, "religion"=>nil, "rule_violations_count"=>0, "spent_capital_amount_in_cents"=>0, "submitted_address"=>nil, "subnations"=>[], "suffix"=>nil, "support_level_changed_at"=>nil, "support_probability_score"=>nil, "turnout_probability_score"=>nil, "twitter_address"=>nil, "twitter_description"=>nil, "twitter_followers_count"=>nil, "twitter_friends_count"=>nil, "twitter_location"=>nil, "twitter_login"=>nil, "twitter_updated_at"=>nil, "twitter_website"=>nil, "unsubscribed_at"=>nil, "user_submitted_address"=>nil, "username"=>nil, "warnings_count"=>0, "website"=>nil, "work_address"=>nil, "work_phone_number"=>nil}, "precinct"=>nil})
73
- end
74
-
75
- it 'should handle a parametered PUT' do
76
- person = {
77
- id: 15,
78
- person: {
79
- first_name: "David"
80
- }
81
- }
82
-
83
- response = VCR.use_cassette('parametered_put') do
84
- client.call(:people, :update, person)
85
- end
86
-
87
- response
88
- .should eq({"person"=>{"birthdate"=>nil, "city_district"=>nil, "civicrm_id"=>nil, "county_district"=>nil, "county_file_id"=>nil, "created_at"=>"2014-06-25T15:35:22-07:00", "do_not_call"=>false, "do_not_contact"=>false, "dw_id"=>nil, "email"=>"bob@example.com", "email_opt_in"=>true, "employer"=>nil, "external_id"=>nil, "federal_district"=>nil, "fire_district"=>nil, "first_name"=>"David", "has_facebook"=>false, "id"=>15, "is_twitter_follower"=>false, "is_volunteer"=>false, "judicial_district"=>nil, "labour_region"=>nil, "last_name"=>"Smith", "linkedin_id"=>nil, "mobile"=>nil, "mobile_opt_in"=>true, "nbec_guid"=>nil, "ngp_id"=>nil, "note"=>nil, "occupation"=>nil, "party"=>nil, "pf_strat_id"=>nil, "phone"=>nil, "precinct_id"=>nil, "primary_address"=>nil, "recruiter_id"=>nil, "rnc_id"=>nil, "rnc_regid"=>nil, "salesforce_id"=>nil, "school_district"=>nil, "school_sub_district"=>nil, "sex"=>nil, "state_file_id"=>nil, "state_lower_district"=>nil, "state_upper_district"=>nil, "support_level"=>nil, "supranational_district"=>nil, "tags"=>[], "twitter_id"=>"323013939", "twitter_name"=>"Random EVE Guy", "updated_at"=>"2014-06-25T15:38:50-07:00", "van_id"=>nil, "village_district"=>nil, "active_customer_expires_at"=>nil, "active_customer_started_at"=>nil, "author"=>nil, "author_id"=>nil, "auto_import_id"=>nil, "availability"=>nil, "banned_at"=>nil, "billing_address"=>nil, "bio"=>"", "call_status_id"=>nil, "call_status_name"=>nil, "capital_amount_in_cents"=>500, "children_count"=>0, "church"=>nil, "city_sub_district"=>nil, "closed_invoices_amount_in_cents"=>nil, "closed_invoices_count"=>nil, "contact_status_id"=>nil, "contact_status_name"=>nil, "could_vote_status"=>nil, "demo"=>nil, "donations_amount_in_cents"=>0, "donations_amount_this_cycle_in_cents"=>0, "donations_count"=>0, "donations_count_this_cycle"=>0, "donations_pledged_amount_in_cents"=>0, "donations_raised_amount_in_cents"=>0, "donations_raised_amount_this_cycle_in_cents"=>0, "donations_raised_count"=>0, "donations_raised_count_this_cycle"=>0, "donations_to_raise_amount_in_cents"=>0, "email1"=>"bob@example.com", "email1_is_bad"=>false, "email2"=>nil, "email2_is_bad"=>false, "email3"=>nil, "email3_is_bad"=>false, "email4"=>nil, "email4_is_bad"=>false, "ethnicity"=>nil, "facebook_address"=>nil, "facebook_profile_url"=>nil, "facebook_updated_at"=>nil, "facebook_username"=>nil, "fax_number"=>nil, "federal_donotcall"=>false, "first_donated_at"=>nil, "first_fundraised_at"=>nil, "first_invoice_at"=>nil, "first_prospect_at"=>nil, "first_recruited_at"=>nil, "first_supporter_at"=>"2014-06-25T15:35:22-07:00", "first_volunteer_at"=>nil, "full_name"=>"David Smith", "home_address"=>nil, "import_id"=>nil, "inferred_party"=>nil, "inferred_support_level"=>nil, "invoice_payments_amount_in_cents"=>0, "invoice_payments_referred_amount_in_cents"=>0, "invoices_amount_in_cents"=>nil, "invoices_count"=>nil, "is_deceased"=>false, "is_donor"=>false, "is_fundraiser"=>false, "is_ignore_donation_limits"=>false, "is_leaderboardable"=>true, "is_mobile_bad"=>false, "is_possible_duplicate"=>false, "is_profile_private"=>false, "is_profile_searchable"=>true, "is_prospect"=>false, "is_supporter"=>true, "is_survey_question_private"=>false, "language"=>nil, "last_call_id"=>nil, "last_contacted_at"=>nil, "last_contacted_by"=>nil, "last_donated_at"=>nil, "last_fundraised_at"=>nil, "last_invoice_at"=>nil, "last_rule_violation_at"=>nil, "legal_name"=>nil, "locale"=>nil, "mailing_address"=>nil, "marital_status"=>nil, "media_market_name"=>nil, "meetup_address"=>nil, "membership_expires_at"=>nil, "membership_level_name"=>nil, "membership_started_at"=>nil, "middle_name"=>nil, "mobile_normalized"=>nil, "nbec_precinct_code"=>nil, "note_updated_at"=>nil, "outstanding_invoices_amount_in_cents"=>nil, "outstanding_invoices_count"=>nil, "overdue_invoices_count"=>0, "page_slug"=>nil, "parent"=>nil, "parent_id"=>nil, "party_member"=>false, "phone_normalized"=>nil, "phone_time"=>nil, "precinct_code"=>nil, "precinct_name"=>nil, "prefix"=>nil, "previous_party"=>nil, "primary_email_id"=>1, "priority_level"=>nil, "priority_level_changed_at"=>nil, "profile_content"=>nil, "profile_content_html"=>nil, "profile_headline"=>nil, "received_capital_amount_in_cents"=>500, "recruiter"=>nil, "recruits_count"=>0, "registered_address"=>nil, "registered_at"=>nil, "religion"=>nil, "rule_violations_count"=>0, "spent_capital_amount_in_cents"=>0, "submitted_address"=>nil, "subnations"=>[], "suffix"=>nil, "support_level_changed_at"=>nil, "support_probability_score"=>nil, "turnout_probability_score"=>nil, "twitter_address"=>nil, "twitter_description"=>"", "twitter_followers_count"=>10, "twitter_friends_count"=>21, "twitter_location"=>"", "twitter_login"=>"RandomEVEGuy", "twitter_updated_at"=>nil, "twitter_website"=>nil, "unsubscribed_at"=>nil, "user_submitted_address"=>nil, "username"=>"randomeveguy", "warnings_count"=>0, "website"=>nil, "work_address"=>nil, "work_phone_number"=>nil}, "precinct"=>nil})
71
+ response['person']['first_name'].should eq('Bob')
89
72
  end
90
73
 
91
74
  it 'should handle a DELETE' do
92
75
  params = {
93
- id: 15,
76
+ id: 24,
94
77
  }
95
78
 
96
79
  response = VCR.use_cassette('delete') do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nationbuilder-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Huie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-06 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -126,7 +126,6 @@ files:
126
126
  - spec/fixtures/delete.yml
127
127
  - spec/fixtures/parametered_get.yml
128
128
  - spec/fixtures/parametered_post.yml
129
- - spec/fixtures/parametered_put.yml
130
129
  - spec/nationbuilder_client_spec.rb
131
130
  - spec/spec_helper.rb
132
131
  homepage: http://github.com/3dna/nationbuilder-rb
@@ -149,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
148
  version: '0'
150
149
  requirements: []
151
150
  rubyforge_project:
152
- rubygems_version: 2.2.2
151
+ rubygems_version: 2.1.11
153
152
  signing_key:
154
153
  specification_version: 4
155
154
  summary: A Ruby client to the NationBuilder API
@@ -1,69 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://dh.nationbuilder.com/api/v1/people/15
6
- body:
7
- encoding: UTF-8
8
- string: '{"person":{"first_name":"David"},"access_token":"6e516b5d9a3d21b3cc079bc303c01aae3d59c8d4a7e9e6d2acfc11dada0e054e"}'
9
- headers:
10
- User-Agent:
11
- - HTTPClient/1.0 (2.4.0, ruby 2.0.0 (2013-11-22))
12
- Accept:
13
- - application/json
14
- Date:
15
- - Wed, 25 Jun 2014 22:38:48 GMT
16
- Content-Type:
17
- - application/json
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - cloudflare-nginx
25
- Date:
26
- - Wed, 25 Jun 2014 22:38:51 GMT
27
- Content-Type:
28
- - application/json
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Set-Cookie:
34
- - __cfduid=d9f6a661a01dd1d52b9fd40de4187f8b81403735928830; expires=Mon, 23-Dec-2019
35
- 23:50:00 GMT; path=/; domain=.nationbuilder.com; HttpOnly
36
- X-Ua-Compatible:
37
- - IE=Edge,chrome=1
38
- Cache-Control:
39
- - max-age=0, private, must-revalidate
40
- Nation-Ratelimit-Limit:
41
- - '10000'
42
- Nation-Ratelimit-Remaining:
43
- - '9970'
44
- Nation-Ratelimit-Reset:
45
- - '1403740800'
46
- X-Request-Id:
47
- - 392db6e3a23d80b1ed831cdad7923a6b
48
- X-Runtime:
49
- - '2.373228'
50
- X-Rack-Cache:
51
- - invalidate, pass
52
- X-Powered-By:
53
- - Phusion Passenger 4.0.23
54
- Status:
55
- - 200 OK
56
- Vary:
57
- - Accept-Encoding
58
- Via:
59
- - 1.1 nationbuilder.com
60
- Cf-Ray:
61
- - 1404a85335c70d67-LAX
62
- body:
63
- encoding: UTF-8
64
- string: '{"person":{"birthdate":null,"city_district":null,"civicrm_id":null,"county_district":null,"county_file_id":null,"created_at":"2014-06-25T15:35:22-07:00","do_not_call":false,"do_not_contact":false,"dw_id":null,"email":"bob@example.com","email_opt_in":true,"employer":null,"external_id":null,"federal_district":null,"fire_district":null,"first_name":"David","has_facebook":false,"id":15,"is_twitter_follower":false,"is_volunteer":false,"judicial_district":null,"labour_region":null,"last_name":"Smith","linkedin_id":null,"mobile":null,"mobile_opt_in":true,"nbec_guid":null,"ngp_id":null,"note":null,"occupation":null,"party":null,"pf_strat_id":null,"phone":null,"precinct_id":null,"primary_address":null,"recruiter_id":null,"rnc_id":null,"rnc_regid":null,"salesforce_id":null,"school_district":null,"school_sub_district":null,"sex":null,"state_file_id":null,"state_lower_district":null,"state_upper_district":null,"support_level":null,"supranational_district":null,"tags":[],"twitter_id":"323013939","twitter_name":"Random
65
- EVE Guy","updated_at":"2014-06-25T15:38:50-07:00","van_id":null,"village_district":null,"active_customer_expires_at":null,"active_customer_started_at":null,"author":null,"author_id":null,"auto_import_id":null,"availability":null,"banned_at":null,"billing_address":null,"bio":"","call_status_id":null,"call_status_name":null,"capital_amount_in_cents":500,"children_count":0,"church":null,"city_sub_district":null,"closed_invoices_amount_in_cents":null,"closed_invoices_count":null,"contact_status_id":null,"contact_status_name":null,"could_vote_status":null,"demo":null,"donations_amount_in_cents":0,"donations_amount_this_cycle_in_cents":0,"donations_count":0,"donations_count_this_cycle":0,"donations_pledged_amount_in_cents":0,"donations_raised_amount_in_cents":0,"donations_raised_amount_this_cycle_in_cents":0,"donations_raised_count":0,"donations_raised_count_this_cycle":0,"donations_to_raise_amount_in_cents":0,"email1":"bob@example.com","email1_is_bad":false,"email2":null,"email2_is_bad":false,"email3":null,"email3_is_bad":false,"email4":null,"email4_is_bad":false,"ethnicity":null,"facebook_address":null,"facebook_profile_url":null,"facebook_updated_at":null,"facebook_username":null,"fax_number":null,"federal_donotcall":false,"first_donated_at":null,"first_fundraised_at":null,"first_invoice_at":null,"first_prospect_at":null,"first_recruited_at":null,"first_supporter_at":"2014-06-25T15:35:22-07:00","first_volunteer_at":null,"full_name":"David
66
- Smith","home_address":null,"import_id":null,"inferred_party":null,"inferred_support_level":null,"invoice_payments_amount_in_cents":0,"invoice_payments_referred_amount_in_cents":0,"invoices_amount_in_cents":null,"invoices_count":null,"is_deceased":false,"is_donor":false,"is_fundraiser":false,"is_ignore_donation_limits":false,"is_leaderboardable":true,"is_mobile_bad":false,"is_possible_duplicate":false,"is_profile_private":false,"is_profile_searchable":true,"is_prospect":false,"is_supporter":true,"is_survey_question_private":false,"language":null,"last_call_id":null,"last_contacted_at":null,"last_contacted_by":null,"last_donated_at":null,"last_fundraised_at":null,"last_invoice_at":null,"last_rule_violation_at":null,"legal_name":null,"locale":null,"mailing_address":null,"marital_status":null,"media_market_name":null,"meetup_address":null,"membership_expires_at":null,"membership_level_name":null,"membership_started_at":null,"middle_name":null,"mobile_normalized":null,"nbec_precinct_code":null,"note_updated_at":null,"outstanding_invoices_amount_in_cents":null,"outstanding_invoices_count":null,"overdue_invoices_count":0,"page_slug":null,"parent":null,"parent_id":null,"party_member":false,"phone_normalized":null,"phone_time":null,"precinct_code":null,"precinct_name":null,"prefix":null,"previous_party":null,"primary_email_id":1,"priority_level":null,"priority_level_changed_at":null,"profile_content":null,"profile_content_html":null,"profile_headline":null,"received_capital_amount_in_cents":500,"recruiter":null,"recruits_count":0,"registered_address":null,"registered_at":null,"religion":null,"rule_violations_count":0,"spent_capital_amount_in_cents":0,"submitted_address":null,"subnations":[],"suffix":null,"support_level_changed_at":null,"support_probability_score":null,"turnout_probability_score":null,"twitter_address":null,"twitter_description":"","twitter_followers_count":10,"twitter_friends_count":21,"twitter_location":"","twitter_login":"RandomEVEGuy","twitter_updated_at":null,"twitter_website":null,"unsubscribed_at":null,"user_submitted_address":null,"username":"randomeveguy","warnings_count":0,"website":null,"work_address":null,"work_phone_number":null},"precinct":null}'
67
- http_version:
68
- recorded_at: Wed, 25 Jun 2014 22:38:51 GMT
69
- recorded_with: VCR 2.9.2