pipeline_deals 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/LICENSE.txt +2 -2
  4. data/Rakefile +6 -0
  5. data/lib/pipeline_deals.rb +11 -2
  6. data/lib/pipeline_deals/resource.rb +11 -5
  7. data/lib/pipeline_deals/resources/calendar_entry.rb +7 -0
  8. data/lib/pipeline_deals/resources/company.rb +2 -0
  9. data/lib/pipeline_deals/resources/company_custom_field_label.rb +1 -0
  10. data/lib/pipeline_deals/resources/deal.rb +4 -2
  11. data/lib/pipeline_deals/resources/deal_custom_field_label.rb +1 -0
  12. data/lib/pipeline_deals/resources/definitions.rb +12 -10
  13. data/lib/pipeline_deals/resources/event_category.rb +0 -1
  14. data/lib/pipeline_deals/resources/lead_source.rb +0 -1
  15. data/lib/pipeline_deals/resources/note.rb +9 -0
  16. data/lib/pipeline_deals/resources/note_category.rb +0 -1
  17. data/lib/pipeline_deals/resources/person.rb +8 -1
  18. data/lib/pipeline_deals/resources/person_custom_field_label.rb +1 -0
  19. data/lib/pipeline_deals/resources/predefined_contacts_tags.rb +0 -1
  20. data/lib/pipeline_deals/resources/user.rb +1 -0
  21. data/lib/pipeline_deals/version.rb +1 -1
  22. data/pipeline_deals.gemspec +6 -1
  23. data/spec/cassettes/PipelineDeals_Deal_calendar_entries.yml +49 -0
  24. data/spec/cassettes/PipelineDeals_Deal_notes.yml +62 -0
  25. data/spec/cassettes/PipelineDeals_Person_calendar_entries.yml +49 -0
  26. data/spec/cassettes/PipelineDeals_Person_documents.yml +47 -0
  27. data/spec/cassettes/PipelineDeals_Person_items.yml +156 -0
  28. data/spec/cassettes/PipelineDeals_Person_next_page.yml +57 -0
  29. data/spec/cassettes/PipelineDeals_Person_notes.yml +53 -0
  30. data/spec/cassettes/PipelineDeals_Person_per_page.yml +76 -0
  31. data/spec/cassettes/PipelineDeals_Person_six_things.yml +72 -0
  32. data/spec/cassettes/deal_create.yml +48 -0
  33. data/spec/cassettes/deals_filtered_by_custom_field.yml +95 -0
  34. data/spec/cassettes/get_a_person.yml +49 -0
  35. data/spec/cassettes/people_filtered_by_status.yml +64 -0
  36. data/spec/cassettes/person_with_company.yml +49 -0
  37. data/spec/cassettes/person_with_deals.yml +49 -0
  38. data/spec/pipeline_deals/admin_spec.rb +3 -4
  39. data/spec/pipeline_deals/companies_spec.rb +4 -62
  40. data/spec/pipeline_deals/deals_spec.rb +67 -51
  41. data/spec/pipeline_deals/people_spec.rb +45 -0
  42. data/spec/spec_helper.rb +13 -5
  43. data/spec/support/has_calendar_entries.rb +8 -0
  44. data/spec/support/has_deals.rb +8 -0
  45. data/spec/support/has_documents.rb +8 -0
  46. data/spec/support/has_notes.rb +8 -0
  47. data/spec/support/has_people.rb +8 -0
  48. data/spec/{pipeline_deals → support}/pagination_spec.rb +10 -12
  49. metadata +98 -22
  50. data/a_spike.rb +0 -72
  51. data/spec/pipeline_deals/has_documents.rb +0 -9
  52. data/spec/pipeline_deals/has_people.rb +0 -10
@@ -0,0 +1,156 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/people.json?api_key=iJHyFkMUBSfjUovt29
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 19 May 2014 16:27:42 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '2096'
31
+ Etag:
32
+ - ! '"c00320e1d43704005d716ea0bb34f54f"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '29662'
37
+ Set-Cookie:
38
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
39
+ 00:00:00 GMT
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"entries":[{"company_id":1,"created_at":"2014/05/19 08:54:59 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Leonard","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":1,"instant_message":null,"last_name":"Jakubowski","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
43
+ 12:13:24 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Roob
44
+ Group","full_name":"Leonard Jakubowski","predefined_contacts_tag_ids":[],"deal_ids":[2],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[{"id":2,"name":"reinvent
45
+ rich infrastructures"}],"lead_source":{"id":2,"name":"Cold Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":1,"name":"Roob
46
+ Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":2,"created_at":"2014/05/19
47
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Kendrick","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":2,"instant_message":null,"last_name":"Rolfson","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
48
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Baumbach,
49
+ Mitchell and Pfannerstill","full_name":"Kendrick Rolfson","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
50
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":2,"name":"Baumbach,
51
+ Mitchell and Pfannerstill"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":3,"created_at":"2014/05/19
52
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Dorcas","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":3,"instant_message":null,"last_name":"McCullough","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
53
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Walker
54
+ Inc","full_name":"Dorcas McCullough","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
55
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":3,"name":"Walker
56
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":4,"created_at":"2014/05/19
57
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Tamia","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":4,"instant_message":null,"last_name":"Skiles","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
58
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rosenbaum
59
+ Inc","full_name":"Tamia Skiles","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
60
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":4,"name":"Rosenbaum
61
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":5,"created_at":"2014/05/19
62
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Katharina","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":5,"instant_message":null,"last_name":"Zemlak","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
63
+ 08:55:06 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Hermann-Schowalter","full_name":"Katharina
64
+ Zemlak","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
65
+ Call"},"company":{"id":5,"name":"Hermann-Schowalter"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":6,"created_at":"2014/05/19
66
+ 08:55:06 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Pete","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":6,"instant_message":null,"last_name":"Upton","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
67
+ 08:55:07 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Cormier,
68
+ Rath and Rohan","full_name":"Pete Upton","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
69
+ Call"},"company":{"id":6,"name":"Cormier, Rath and Rohan"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":7,"created_at":"2014/05/19
70
+ 08:55:07 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Graciela","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":7,"instant_message":null,"last_name":"Keebler","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
71
+ 08:55:09 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Nienow
72
+ and Sons","full_name":"Graciela Keebler","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
73
+ Call"},"company":{"id":7,"name":"Nienow and Sons"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":8,"created_at":"2014/05/19
74
+ 08:55:09 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Donny","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":8,"instant_message":null,"last_name":"Beatty","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
75
+ 08:55:09 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Pfannerstill-Lockman","full_name":"Donny
76
+ Beatty","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
77
+ Call"},"company":{"id":8,"name":"Pfannerstill-Lockman"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":9,"created_at":"2014/05/19
78
+ 08:55:10 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Giovanny","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":9,"instant_message":null,"last_name":"Johnson","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
79
+ 08:55:10 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Nikolaus-Abernathy","full_name":"Giovanny
80
+ Johnson","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
81
+ Call"},"company":{"id":9,"name":"Nikolaus-Abernathy"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":10,"created_at":"2014/05/19
82
+ 08:55:10 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Ellen","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":10,"instant_message":null,"last_name":"Donnelly","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
83
+ 08:55:12 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Towne-Bernier","full_name":"Ellen
84
+ Donnelly","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
85
+ Call"},"company":{"id":10,"name":"Towne-Bernier"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":11,"created_at":"2014/05/19
86
+ 08:55:13 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Lydia","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":11,"instant_message":null,"last_name":"Ritchie","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
87
+ 08:55:13 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rowe
88
+ Group","full_name":"Lydia Ritchie","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
89
+ Call"},"company":{"id":11,"name":"Rowe Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":12,"created_at":"2014/05/19
90
+ 08:55:13 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Raleigh","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":12,"instant_message":null,"last_name":"Watsica","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
91
+ 08:55:15 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Wisozk
92
+ Inc","full_name":"Raleigh Watsica","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
93
+ Call"},"company":{"id":12,"name":"Wisozk Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":13,"created_at":"2014/05/19
94
+ 08:55:15 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Emory","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":13,"instant_message":null,"last_name":"Schinner","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
95
+ 08:55:16 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Metz,
96
+ Balistreri and Kris","full_name":"Emory Schinner","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
97
+ Call"},"company":{"id":13,"name":"Metz, Balistreri and Kris"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":14,"created_at":"2014/05/19
98
+ 08:55:16 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Elinore","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":14,"instant_message":null,"last_name":"Gorczany","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
99
+ 08:55:18 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Sawayn,
100
+ Daniel and Becker","full_name":"Elinore Gorczany","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
101
+ Call"},"company":{"id":14,"name":"Sawayn, Daniel and Becker"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":15,"created_at":"2014/05/19
102
+ 08:55:18 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Danielle","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":15,"instant_message":null,"last_name":"Swaniawski","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
103
+ 08:55:18 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Paucek-Mueller","full_name":"Danielle
104
+ Swaniawski","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
105
+ Call"},"company":{"id":15,"name":"Paucek-Mueller"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":16,"created_at":"2014/05/19
106
+ 08:55:19 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Angelo","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":16,"instant_message":null,"last_name":"Kirlin","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
107
+ 08:55:19 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Dach
108
+ LLC","full_name":"Angelo Kirlin","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
109
+ Call"},"company":{"id":16,"name":"Dach LLC"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":17,"created_at":"2014/05/19
110
+ 08:55:19 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Elroy","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":17,"instant_message":null,"last_name":"Jakubowski","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
111
+ 08:55:20 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Wunsch
112
+ Group","full_name":"Elroy Jakubowski","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
113
+ Call"},"company":{"id":17,"name":"Wunsch Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":18,"created_at":"2014/05/19
114
+ 08:55:21 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Vernon","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":18,"instant_message":null,"last_name":"Schinner","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
115
+ 08:55:21 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Schuppe-Funk","full_name":"Vernon
116
+ Schinner","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
117
+ Call"},"company":{"id":18,"name":"Schuppe-Funk"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":19,"created_at":"2014/05/19
118
+ 08:55:21 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Edwin","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":19,"instant_message":null,"last_name":"Turner","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
119
+ 08:55:22 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Hettinger
120
+ Group","full_name":"Edwin Turner","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
121
+ Call"},"company":{"id":19,"name":"Hettinger Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":20,"created_at":"2014/05/19
122
+ 08:55:22 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Kamryn","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":20,"instant_message":null,"last_name":"Shields","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
123
+ 08:55:23 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Ortiz-Lowe","full_name":"Kamryn
124
+ Shields","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
125
+ Call"},"company":{"id":20,"name":"Ortiz-Lowe"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":21,"created_at":"2014/05/19
126
+ 08:55:24 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Clinton","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":21,"instant_message":null,"last_name":"Donnelly","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
127
+ 08:55:24 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rolfson,
128
+ Schuppe and Graham","full_name":"Clinton Donnelly","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
129
+ Call"},"company":{"id":21,"name":"Rolfson, Schuppe and Graham"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":22,"created_at":"2014/05/19
130
+ 08:55:25 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Demarco","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":22,"instant_message":null,"last_name":"Wilderman","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
131
+ 08:55:25 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Waelchi-O''Connell","full_name":"Demarco
132
+ Wilderman","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
133
+ Call"},"company":{"id":22,"name":"Waelchi-O''Connell"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":23,"created_at":"2014/05/19
134
+ 08:55:25 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Roger","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":23,"instant_message":null,"last_name":"Wilderman","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
135
+ 08:55:27 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Anderson-Murray","full_name":"Roger
136
+ Wilderman","predefined_contacts_tag_ids":[],"deal_ids":[7],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[{"id":7,"name":"innovate
137
+ B2B communities"}],"lead_source":{"id":2,"name":"Cold Call"},"company":{"id":23,"name":"Anderson-Murray"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":24,"created_at":"2014/05/19
138
+ 08:55:27 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Shannon","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":24,"instant_message":null,"last_name":"Rath","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
139
+ 08:55:28 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Purdy,
140
+ Borer and Schmitt","full_name":"Shannon Rath","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
141
+ Call"},"company":{"id":24,"name":"Purdy, Borer and Schmitt"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":25,"created_at":"2014/05/19
142
+ 08:55:28 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Diego","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":25,"instant_message":null,"last_name":"Becker","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
143
+ 08:55:29 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Kub,
144
+ Feest and Borer","full_name":"Diego Becker","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
145
+ Call"},"company":{"id":25,"name":"Kub, Feest and Borer"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":26,"created_at":"2014/05/19
146
+ 08:55:29 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Mazie","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":26,"instant_message":null,"last_name":"Ebert","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
147
+ 08:55:29 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Stiedemann-Lowe","full_name":"Mazie
148
+ Ebert","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
149
+ Call"},"company":{"id":26,"name":"Stiedemann-Lowe"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":27,"created_at":"2014/05/19
150
+ 08:55:30 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Eldora","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":27,"instant_message":null,"last_name":"Corwin","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
151
+ 08:55:31 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Corkery-Franecki","full_name":"Eldora
152
+ Corwin","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
153
+ Call"},"company":{"id":27,"name":"Corkery-Franecki"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}}],"pagination":{"page":1,"page_var":"page","per_page":200,"pages":1,"total":27}}'
154
+ http_version:
155
+ recorded_at: Mon, 19 May 2014 16:27:42 GMT
156
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/people.json?api_key=iJHyFkMUBSfjUovt29&page=2&per_page=3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 19 May 2014 16:28:06 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '1422'
31
+ Etag:
32
+ - ! '"f41d1b88035b8c615855d486d1e4a13c"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '3378'
37
+ Set-Cookie:
38
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
39
+ 00:00:00 GMT
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"entries":[{"company_id":4,"created_at":"2014/05/19 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Tamia","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":4,"instant_message":null,"last_name":"Skiles","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
43
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rosenbaum
44
+ Inc","full_name":"Tamia Skiles","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
45
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":4,"name":"Rosenbaum
46
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":5,"created_at":"2014/05/19
47
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Katharina","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":5,"instant_message":null,"last_name":"Zemlak","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
48
+ 08:55:06 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Hermann-Schowalter","full_name":"Katharina
49
+ Zemlak","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
50
+ Call"},"company":{"id":5,"name":"Hermann-Schowalter"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":6,"created_at":"2014/05/19
51
+ 08:55:06 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Pete","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":6,"instant_message":null,"last_name":"Upton","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
52
+ 08:55:07 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Cormier,
53
+ Rath and Rohan","full_name":"Pete Upton","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
54
+ Call"},"company":{"id":6,"name":"Cormier, Rath and Rohan"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}}],"pagination":{"page":2,"page_var":"page","per_page":3,"pages":10,"total":27}}'
55
+ http_version:
56
+ recorded_at: Mon, 19 May 2014 16:28:06 GMT
57
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/notes.json?api_key=iJHyFkMUBSfjUovt29&person_id=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 19 May 2014 16:28:37 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '985'
31
+ Etag:
32
+ - ! '"d3a21f90ca9209ad6dacd4bbd6d910c2"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '1812'
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! '{"entries":[{"company_id":1,"content":"Nesciunt ex quo magni natus
40
+ quidem quos.\nEt sit neque blanditiis eligendi saepe quis tempore.\nEt vitae
41
+ et omnis placeat dicta sit illum.","created_at":"2013/11/20 17:32:42 -0500","created_by_user_id":2,"deal_id":2,"id":2,"note_category_id":1,"person_id":1,"title":null,"updated_at":"2014/05/19
42
+ 08:55:00 -0400","user":{"first_name":"Maggie","id":2,"last_name":"Zemlak","avatar_thumb_url":null},"created_by_user":{"first_name":"Maggie","id":2,"last_name":"Zemlak","avatar_thumb_url":null},"deal":{"id":2,"name":"reinvent
43
+ rich infrastructures"},"person":{"id":1,"first_name":"Leonard","last_name":"Jakubowski"},"company":{"id":1,"name":"Roob
44
+ Group"},"note_category":{"id":1,"name":"Phone Call"},"notify_user_ids":[2],"comments":{"entries":[],"pagination":{"page":1,"page_var":"page","per_page":30,"pages":1,"total":0}},"user_id":2},{"company_id":1,"content":"Ut
45
+ consequuntur animi harum possimus rerum perspiciatis.\nMolestiae sunt qui
46
+ eveniet repellendus ad quod.\nEt omnis reprehenderit doloribus fuga.","created_at":"2013/07/14
47
+ 23:43:01 -0400","created_by_user_id":2,"deal_id":2,"id":1,"note_category_id":2,"person_id":1,"title":null,"updated_at":"2014/05/19
48
+ 08:55:00 -0400","user":{"first_name":"Maggie","id":2,"last_name":"Zemlak","avatar_thumb_url":null},"created_by_user":{"first_name":"Maggie","id":2,"last_name":"Zemlak","avatar_thumb_url":null},"deal":{"id":2,"name":"reinvent
49
+ rich infrastructures"},"person":{"id":1,"first_name":"Leonard","last_name":"Jakubowski"},"company":{"id":1,"name":"Roob
50
+ Group"},"note_category":{"id":2,"name":"Voicemail"},"notify_user_ids":[2],"comments":{"entries":[],"pagination":{"page":1,"page_var":"page","per_page":30,"pages":1,"total":0}},"user_id":2}],"pagination":{"page":1,"page_var":"page","per_page":200,"pages":1,"total":2}}'
51
+ http_version:
52
+ recorded_at: Mon, 19 May 2014 16:28:37 GMT
53
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/people.json?api_key=iJHyFkMUBSfjUovt29&per_page=7
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 19 May 2014 16:27:50 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '1432'
31
+ Etag:
32
+ - ! '"90d2a8a1f75595aaf095515d8a9686b7"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '7901'
37
+ Set-Cookie:
38
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
39
+ 00:00:00 GMT
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"entries":[{"company_id":1,"created_at":"2014/05/19 08:54:59 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Leonard","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":1,"instant_message":null,"last_name":"Jakubowski","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
43
+ 12:13:24 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Roob
44
+ Group","full_name":"Leonard Jakubowski","predefined_contacts_tag_ids":[],"deal_ids":[2],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[{"id":2,"name":"reinvent
45
+ rich infrastructures"}],"lead_source":{"id":2,"name":"Cold Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":1,"name":"Roob
46
+ Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":2,"created_at":"2014/05/19
47
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Kendrick","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":2,"instant_message":null,"last_name":"Rolfson","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
48
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Baumbach,
49
+ Mitchell and Pfannerstill","full_name":"Kendrick Rolfson","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
50
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":2,"name":"Baumbach,
51
+ Mitchell and Pfannerstill"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":3,"created_at":"2014/05/19
52
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Dorcas","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":3,"instant_message":null,"last_name":"McCullough","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
53
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Walker
54
+ Inc","full_name":"Dorcas McCullough","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
55
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":3,"name":"Walker
56
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":4,"created_at":"2014/05/19
57
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Tamia","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":4,"instant_message":null,"last_name":"Skiles","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
58
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rosenbaum
59
+ Inc","full_name":"Tamia Skiles","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
60
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":4,"name":"Rosenbaum
61
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":5,"created_at":"2014/05/19
62
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Katharina","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":5,"instant_message":null,"last_name":"Zemlak","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
63
+ 08:55:06 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Hermann-Schowalter","full_name":"Katharina
64
+ Zemlak","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
65
+ Call"},"company":{"id":5,"name":"Hermann-Schowalter"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":6,"created_at":"2014/05/19
66
+ 08:55:06 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Pete","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":6,"instant_message":null,"last_name":"Upton","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
67
+ 08:55:07 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Cormier,
68
+ Rath and Rohan","full_name":"Pete Upton","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
69
+ Call"},"company":{"id":6,"name":"Cormier, Rath and Rohan"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":7,"created_at":"2014/05/19
70
+ 08:55:07 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Graciela","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":7,"instant_message":null,"last_name":"Keebler","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
71
+ 08:55:09 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Nienow
72
+ and Sons","full_name":"Graciela Keebler","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
73
+ Call"},"company":{"id":7,"name":"Nienow and Sons"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}}],"pagination":{"page":1,"page_var":"page","per_page":7,"pages":4,"total":27}}'
74
+ http_version:
75
+ recorded_at: Mon, 19 May 2014 16:27:50 GMT
76
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,72 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/people.json?api_key=iJHyFkMUBSfjUovt29&page=1&per_page=6
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Mon, 19 May 2014 16:27:58 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '1649'
31
+ Etag:
32
+ - ! '"7fa98b47e91774ee9ca9c57568bc97d9"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '6817'
37
+ Set-Cookie:
38
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
39
+ 00:00:00 GMT
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"entries":[{"company_id":1,"created_at":"2014/05/19 08:54:59 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Leonard","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":1,"instant_message":null,"last_name":"Jakubowski","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
43
+ 12:13:24 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Roob
44
+ Group","full_name":"Leonard Jakubowski","predefined_contacts_tag_ids":[],"deal_ids":[2],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[{"id":2,"name":"reinvent
45
+ rich infrastructures"}],"lead_source":{"id":2,"name":"Cold Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":1,"name":"Roob
46
+ Group"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":2,"created_at":"2014/05/19
47
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Kendrick","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":2,"instant_message":null,"last_name":"Rolfson","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
48
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Baumbach,
49
+ Mitchell and Pfannerstill","full_name":"Kendrick Rolfson","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
50
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":2,"name":"Baumbach,
51
+ Mitchell and Pfannerstill"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":3,"created_at":"2014/05/19
52
+ 08:55:01 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Dorcas","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":3,"instant_message":null,"last_name":"McCullough","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
53
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Walker
54
+ Inc","full_name":"Dorcas McCullough","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
55
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":3,"name":"Walker
56
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":4,"created_at":"2014/05/19
57
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Tamia","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":4,"instant_message":null,"last_name":"Skiles","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
58
+ 11:41:43 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Rosenbaum
59
+ Inc","full_name":"Tamia Skiles","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
60
+ Call"},"lead_status":{"hex_color":"C73408","id":2,"name":"Hot"},"company":{"id":4,"name":"Rosenbaum
61
+ Inc"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"custom_fields":{}},{"company_id":5,"created_at":"2014/05/19
62
+ 08:55:03 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Katharina","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":5,"instant_message":null,"last_name":"Zemlak","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
63
+ 08:55:06 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Hermann-Schowalter","full_name":"Katharina
64
+ Zemlak","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
65
+ Call"},"company":{"id":5,"name":"Hermann-Schowalter"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}},{"company_id":6,"created_at":"2014/05/19
66
+ 08:55:06 -0400","email":null,"email2":null,"facebook_url":null,"fax":null,"first_name":"Pete","home_address_1":null,"home_address_2":null,"home_city":null,"home_country":null,"home_email":null,"home_phone":null,"home_postal_code":null,"home_state":null,"id":6,"instant_message":null,"last_name":"Upton","linked_in_url":null,"mobile":null,"phone":null,"position":null,"twitter":null,"type":"Contact","updated_at":"2014/05/19
67
+ 08:55:07 -0400","user_id":2,"viewed_at":null,"website":null,"work_address_1":null,"work_address_2":null,"work_city":null,"work_country":null,"work_postal_code":null,"work_state":null,"company_name":"Cormier,
68
+ Rath and Rohan","full_name":"Pete Upton","predefined_contacts_tag_ids":[],"deal_ids":[],"image_thumb_url":"/images/thumb/missing.png","image_mobile_url":"/images/mobile/missing.png","predefined_contacts_tags":[],"deals":[],"lead_source":{"id":2,"name":"Cold
69
+ Call"},"company":{"id":6,"name":"Cormier, Rath and Rohan"},"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"lead_status":null,"custom_fields":{}}],"pagination":{"page":1,"page_var":"page","per_page":6,"pages":5,"total":27}}'
70
+ http_version:
71
+ recorded_at: Mon, 19 May 2014 16:27:58 GMT
72
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/v3/deals.json?api_key=iJHyFkMUBSfjUovt29
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"deal":{"name":"a new deal"}}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept:
13
+ - ! '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 20 May 2014 04:07:45 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Runtime:
30
+ - '2306'
31
+ Etag:
32
+ - ! '"6cdd712c2113380f7ac94c569c9d2ae8"'
33
+ Cache-Control:
34
+ - private, max-age=0, must-revalidate
35
+ Content-Length:
36
+ - '697'
37
+ Set-Cookie:
38
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
39
+ 00:00:00 GMT
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ! '{"closed_time":null,"company_id":null,"created_at":"2014/05/20 00:07:44
43
+ -0400","deal_stage_id":null,"expected_close_date":null,"expected_close_date_event_id":null,"id":8,"import_id":null,"is_archived":false,"is_example":null,"name":"a
44
+ new deal","primary_contact_id":null,"probability":null,"source_id":null,"status":null,"summary":null,"updated_at":"2014/05/20
45
+ 00:07:44 -0400","user_id":2,"value_in_cents":null,"user":{"id":2,"first_name":"Maggie","last_name":"Zemlak"},"people":[],"deal_stage":null,"primary_contact":null,"company":null,"collaborators":[],"shared_user_ids":[],"person_ids":[],"custom_fields":{"custom_label_1":null,"custom_label_2":null,"custom_label_3":null,"custom_label_4":0}}'
46
+ http_version:
47
+ recorded_at: Tue, 20 May 2014 04:07:45 GMT
48
+ recorded_with: VCR 2.3.0