pipeline_deals 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/Gemfile +1 -0
  2. data/lib/pipeline_deals.rb +2 -5
  3. data/lib/pipeline_deals/collection.rb +1 -1
  4. data/lib/pipeline_deals/resources.rb +6 -0
  5. data/lib/pipeline_deals/resources/company.rb +4 -3
  6. data/lib/pipeline_deals/resources/deal.rb +7 -6
  7. data/lib/pipeline_deals/resources/document.rb +9 -0
  8. data/lib/pipeline_deals/resources/person.rb +2 -2
  9. data/lib/pipeline_deals/resources/user.rb +1 -1
  10. data/lib/pipeline_deals/version.rb +1 -1
  11. data/spec/cassettes/PipelineDeals_Company_documents.yml +49 -0
  12. data/spec/cassettes/PipelineDeals_Company_items.yml +335 -0
  13. data/spec/cassettes/PipelineDeals_Company_next_page.yml +53 -0
  14. data/spec/cassettes/PipelineDeals_Company_people.yml +51 -0
  15. data/spec/cassettes/PipelineDeals_Company_per_page.yml +63 -0
  16. data/spec/cassettes/PipelineDeals_Company_six_things.yml +60 -0
  17. data/spec/cassettes/PipelineDeals_Deal_different_page.yml +55 -0
  18. data/spec/cassettes/PipelineDeals_Deal_documents.yml +49 -0
  19. data/spec/cassettes/PipelineDeals_Deal_items.yml +291 -0
  20. data/spec/cassettes/PipelineDeals_Deal_next_page.yml +55 -0
  21. data/spec/cassettes/PipelineDeals_Deal_per_page.yml +68 -0
  22. data/spec/cassettes/PipelineDeals_Deal_six_things.yml +65 -0
  23. data/spec/cassettes/company_deals.yml +50 -0
  24. data/spec/cassettes/company_people.yml +51 -0
  25. data/spec/cassettes/deal_documents.yml +49 -0
  26. data/spec/cassettes/deal_with_company.yml +49 -0
  27. data/spec/cassettes/deal_with_primary_contact.yml +49 -0
  28. data/spec/cassettes/deals_filtered_by_stage.yml +109 -0
  29. data/spec/cassettes/get_a_company.yml +48 -0
  30. data/spec/cassettes/get_deals.yml +291 -0
  31. data/spec/pipeline_deals/companies_spec.rb +77 -0
  32. data/spec/pipeline_deals/custom_fields_spec.rb +2 -0
  33. data/spec/pipeline_deals/deals_spec.rb +66 -32
  34. data/spec/pipeline_deals/has_documents.rb +9 -0
  35. data/spec/pipeline_deals/has_people.rb +10 -0
  36. data/spec/pipeline_deals/pagination_spec.rb +38 -0
  37. data/spec/spec_helper.rb +9 -1
  38. metadata +55 -5
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals.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
+ - Sat, 15 Jun 2013 15:13:20 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '2415'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"6a4bad5b2d63bfbf53c1b5e7bbe49daf"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=d5a7ae171358cad5507082ec7fc04d59; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '56'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":3,"total":81,"pages":28,"page_var":"page","page":2},"entries":[{"shared_user_ids":[],"updated_at":"2013/05/31
44
+ 13:10:30 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2140605,"summary":null,"status":1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":17,"name":"expedite
45
+ visionary markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":4,"user_id":1,"created_at":"2013/05/31
46
+ 13:10:29 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":3639,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
47
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2022963,"summary":null,"status":-1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":53,"name":"innovate
48
+ next-generation architectures","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":5,"user_id":1,"created_at":"2013/05/31
49
+ 13:10:30 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":10721,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
50
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":9452766,"summary":null,"status":0,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":99,"name":"target
51
+ turn-key markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":6,"user_id":1,"created_at":"2013/05/31
52
+ 13:10:31 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":93581,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null}]}'
53
+ http_version:
54
+ recorded_at: Sat, 15 Jun 2013 15:13:20 GMT
55
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals.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
+ - Sat, 15 Jun 2013 15:15:41 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '5793'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"bda77136c1123041eff468fe6861d1e1"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=29fc816f2b633d6f355dbdb08e29672d; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '96'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":7,"total":81,"pages":12,"page_var":"page","page":1},"entries":[{"shared_user_ids":[],"updated_at":"2013/06/15
44
+ 10:25:03 -0400","is_example":null,"closed_time":"2013/06/03 15:25:21 -0400","deal_stage":{"name":"Qualified
45
+ Lead","percent":10,"id":2},"value_in_cents":45600,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":0,"name":"architect
46
+ open-source bandwidth","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"source":{"name":"Website","id":5},"primary_contact_id":27,"id":1,"user_id":1,"created_at":"2013/05/31
47
+ 13:10:26 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":10,"custom_label_28":0,"custom_label_27":8,"custom_label_26":5,"custom_label_25":2},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":5,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/06/15
48
+ 10:29:18 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":8283700,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":77,"name":"deploy
49
+ mission-critical infomediaries","deal_stage_id":null,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"primary_contact_id":27,"id":2,"user_id":1,"created_at":"2013/05/31
50
+ 13:10:27 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":null,"custom_label_28":63784,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
51
+ 13:10:29 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":6614872,"summary":null,"status":0,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":53,"name":"optimize
52
+ virtual niches","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":3,"user_id":1,"created_at":"2013/05/31
53
+ 13:10:28 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":35058,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
54
+ 13:10:30 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2140605,"summary":null,"status":1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":17,"name":"expedite
55
+ visionary markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":4,"user_id":1,"created_at":"2013/05/31
56
+ 13:10:29 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":3639,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
57
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2022963,"summary":null,"status":-1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":53,"name":"innovate
58
+ next-generation architectures","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":5,"user_id":1,"created_at":"2013/05/31
59
+ 13:10:30 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":10721,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
60
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":9452766,"summary":null,"status":0,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":99,"name":"target
61
+ turn-key markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":6,"user_id":1,"created_at":"2013/05/31
62
+ 13:10:31 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":93581,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
63
+ 13:10:32 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":8446274,"summary":null,"status":1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":54,"name":"disintermediate
64
+ strategic niches","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":7,"user_id":1,"created_at":"2013/05/31
65
+ 13:10:31 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":45609,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null}]}'
66
+ http_version:
67
+ recorded_at: Sat, 15 Jun 2013 15:15:41 GMT
68
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals.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
+ - Sat, 15 Jun 2013 15:13:20 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '5015'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"be5fcdc55118856251e019b620ba82a3"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=7a1239ce97958972884bf2aaaab3f8b4; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '224'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":6,"total":81,"pages":14,"page_var":"page","page":1},"entries":[{"shared_user_ids":[],"updated_at":"2013/06/15
44
+ 10:25:03 -0400","is_example":null,"closed_time":"2013/06/03 15:25:21 -0400","deal_stage":{"name":"Qualified
45
+ Lead","percent":10,"id":2},"value_in_cents":45600,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":0,"name":"architect
46
+ open-source bandwidth","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"source":{"name":"Website","id":5},"primary_contact_id":27,"id":1,"user_id":1,"created_at":"2013/05/31
47
+ 13:10:26 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":10,"custom_label_28":0,"custom_label_27":8,"custom_label_26":5,"custom_label_25":2},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":5,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/06/15
48
+ 10:29:18 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":8283700,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":77,"name":"deploy
49
+ mission-critical infomediaries","deal_stage_id":null,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"primary_contact_id":27,"id":2,"user_id":1,"created_at":"2013/05/31
50
+ 13:10:27 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":null,"custom_label_28":63784,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
51
+ 13:10:29 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":6614872,"summary":null,"status":0,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":53,"name":"optimize
52
+ virtual niches","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":3,"user_id":1,"created_at":"2013/05/31
53
+ 13:10:28 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":35058,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
54
+ 13:10:30 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2140605,"summary":null,"status":1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":17,"name":"expedite
55
+ visionary markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":4,"user_id":1,"created_at":"2013/05/31
56
+ 13:10:29 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":3639,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
57
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":2022963,"summary":null,"status":-1,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":53,"name":"innovate
58
+ next-generation architectures","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":5,"user_id":1,"created_at":"2013/05/31
59
+ 13:10:30 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":10721,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/05/31
60
+ 13:10:31 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":9452766,"summary":null,"status":0,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":99,"name":"target
61
+ turn-key markets","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":6,"user_id":1,"created_at":"2013/05/31
62
+ 13:10:31 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":93581,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null}]}'
63
+ http_version:
64
+ recorded_at: Sat, 15 Jun 2013 15:13:20 GMT
65
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals.json?api_key=iJHyFkMUBSfjUovt29&company_id=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
+ - Sat, 15 Jun 2013 15:25:51 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '897'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"7c072e3c3a57f9c0135323ce439d6f9e"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=f7e460896f71bc1b7efa09512a21ffa1; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '37'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":200,"total":1,"pages":1,"page_var":"page","page":1},"entries":[{"shared_user_ids":[],"updated_at":"2013/06/15
44
+ 10:54:41 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":6759800,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":{"name":"Tillman
45
+ Inc","id":3},"possible_notify_user_ids":[],"probability":6,"name":"disintermediate
46
+ value-added technologies","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":81,"user_id":1,"created_at":"2013/05/31
47
+ 13:11:17 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":4055,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":3,"source_id":null,"expected_close_date_event_id":null}]}'
48
+ http_version:
49
+ recorded_at: Sat, 15 Jun 2013 15:25:51 GMT
50
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/people.json?api_key=iJHyFkMUBSfjUovt29&company_id=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
+ - Sat, 15 Jun 2013 15:28:26 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '1233'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"95c500bbb016aae461679f3a1a16502c"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=924b16ae11e37c0815921a31cb1f0e20; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '55'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":200,"total":1,"pages":1,"page_var":"page","page":1},"entries":[{"home_phone":null,"lead_status":null,"website":null,"updated_at":"2013/05/31
44
+ 13:09:26 -0400","twitter":null,"last_name":"Murphy","home_country":null,"total_pipeline":0,"viewed_at":null,"first_name":"Rigoberto","company":{"image_thumb_url":"/images/thumb/missing_company.png","name":"Tillman
45
+ Inc","id":3,"deal_ids":[81]},"image_thumb_url":"/images/thumb/missing.png","predefined_contacts_tag_ids":[],"work_address_2":null,"work_address_1":null,"home_city":null,"email2":null,"email":null,"possible_notify_user_ids":[],"won_deals_total":0,"instant_message":null,"id":3,"home_postal_code":null,"lead_source":null,"predefined_contacts_tags":[],"work_state":null,"user_id":1,"position":null,"mobile":null,"home_state":null,"home_email":null,"home_address_2":null,"home_address_1":null,"deals":[],"deal_ids":[],"phone":null,"facebook_url":null,"created_at":"2013/05/31
46
+ 13:09:25 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"work_postal_code":null,"work_city":null,"custom_fields":{},"full_name":"Rigoberto
47
+ Murphy","work_country":null,"linked_in_url":null,"company_id":3,"company_name":"Tillman
48
+ Inc","type":"Contact","fax":null}]}'
49
+ http_version:
50
+ recorded_at: Sat, 15 Jun 2013 15:28:26 GMT
51
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/documents.json?api_key=iJHyFkMUBSfjUovt29&deal_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
+ - Sat, 15 Jun 2013 15:34:55 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '699'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"1fb3b8d7e827346cdc6da20b06b267b5"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=6a7d0e14611e2da5c5478f07977a4f37; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '602'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":200,"total":1,"pages":1,"page_var":"page","page":1},"entries":[{"person":null,"owner":{"last_name":"hoboson","id":1,"first_name":"hobo"},"deal":{"name":"architect
44
+ open-source bandwidth","id":1},"owner_id":1,"updated_at":"2013/06/15 11:34:26
45
+ -0400","company":null,"deal_id":1,"public_link":"https://pipeline-dev-userdata.s3.amazonaws.com/uploaded_documents/1/yes.xls?AWSAccessKeyId=17S233VC0WDV5X5TRN02\u0026Expires=1371314094\u0026Signature=IhTS%2FRMSBey5r67ePLbqTVAgwmo%3D\u0026response-content-disposition=attachment\u0026response-content-type=application%2Fvnd.ms-excel","title":"yes.xls","id":1,"person_id":null,"created_at":"2013/06/15
46
+ 11:34:26 -0400","size_in_k":1}]}'
47
+ http_version:
48
+ recorded_at: Sat, 15 Jun 2013 15:34:55 GMT
49
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals/81.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
+ - Sat, 15 Jun 2013 14:55:23 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '806'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"bfd6554e98e01545b5cf30a9229c56a1"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=65aa8a726cd8c6aa8b26f79ad86074a1; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '58'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"shared_user_ids":[],"updated_at":"2013/06/15 10:54:41 -0400","is_example":null,"closed_time":null,"deal_stage":null,"value_in_cents":6759800,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":{"name":"Tillman
44
+ Inc","id":3},"possible_notify_user_ids":[],"probability":6,"name":"disintermediate
45
+ value-added technologies","deal_stage_id":null,"people":[],"primary_contact_id":null,"id":81,"user_id":1,"created_at":"2013/05/31
46
+ 13:11:17 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":4055,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":3,"source_id":null,"expected_close_date_event_id":null}'
47
+ http_version:
48
+ recorded_at: Sat, 15 Jun 2013 14:55:23 GMT
49
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals/2.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
+ - Sat, 15 Jun 2013 14:29:32 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Cache-Control:
28
+ - private, max-age=0, must-revalidate
29
+ Set-Cookie:
30
+ - _session_id=f10f9c1a9f467d4f31dc47e8fa61f956; path=/; HttpOnly
31
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
32
+ 00:00:00 GMT
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Etag:
36
+ - ! '"da584814f3348f5ed6b226a77297e8d4"'
37
+ Content-Length:
38
+ - '880'
39
+ X-Runtime:
40
+ - '235'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"value_in_cents":8283700,"is_example":null,"company_id":null,"shared_user_ids":[],"user_id":1,"import_id":null,"deal_stage_id":null,"deal_stage":null,"collaborators":[],"company":null,"summary":null,"possible_notify_user_ids":[],"updated_at":"2013/06/15
44
+ 10:29:18 -0400","source_id":null,"probability":77,"primary_contact_id":27,"created_at":"2013/05/31
45
+ 13:10:27 -0400","expected_close_date_event_id":null,"id":2,"expected_close_date":null,"user":{"last_name":"hoboson","first_name":"hobo","id":1},"primary_contact":{"last_name":"Grimes","first_name":"Josue","id":27},"closed_time":null,"custom_fields":{"custom_label_29":null,"custom_label_28":63784,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[27],"status":2,"name":"deploy
46
+ mission-critical infomediaries","people":[{"last_name":"Grimes","first_name":"Josue","id":27}],"is_archived":false}'
47
+ http_version:
48
+ recorded_at: Sat, 15 Jun 2013 14:29:32 GMT
49
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v3/deals.json?api_key=iJHyFkMUBSfjUovt29&conditions%5Bdeal_stage%5D%5B0%5D=2&conditions%5Bdeal_stage%5D%5B1%5D=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
+ - Sat, 15 Jun 2013 15:46:11 GMT
23
+ Status:
24
+ - 200 OK
25
+ Connection:
26
+ - close
27
+ Content-Length:
28
+ - '1958'
29
+ Cache-Control:
30
+ - private, max-age=0, must-revalidate
31
+ Etag:
32
+ - ! '"49beaae110be34929e49041e14e19ad3"'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Set-Cookie:
36
+ - _session_id=2e782373eebf2efb1010f68454942505; path=/; HttpOnly
37
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
38
+ 00:00:00 GMT
39
+ X-Runtime:
40
+ - '56'
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! '{"pagination":{"per_page":200,"total":2,"pages":1,"page_var":"page","page":1},"entries":[{"shared_user_ids":[],"updated_at":"2013/06/15
44
+ 11:34:26 -0400","is_example":null,"closed_time":"2013/06/03 15:25:21 -0400","deal_stage":{"name":"Qualified
45
+ Lead","percent":10,"id":2},"value_in_cents":45600,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":0,"name":"architect
46
+ open-source bandwidth","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"source":{"name":"Website","id":5},"primary_contact_id":27,"id":1,"user_id":1,"created_at":"2013/05/31
47
+ 13:10:26 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":10,"custom_label_28":0,"custom_label_27":8,"custom_label_26":5,"custom_label_25":2},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":5,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/06/15
48
+ 11:45:19 -0400","is_example":null,"closed_time":null,"deal_stage":{"name":"Qualified
49
+ Lead","percent":10,"id":2},"value_in_cents":8283700,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":10,"name":"deploy
50
+ mission-critical infomediaries","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"primary_contact_id":27,"id":2,"user_id":1,"created_at":"2013/05/31
51
+ 13:10:27 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":null,"custom_label_28":8283,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null}]}'
52
+ http_version:
53
+ recorded_at: Sat, 15 Jun 2013 15:46:11 GMT
54
+ - request:
55
+ method: get
56
+ uri: http://localhost:3000/api/v3/deals.json?api_key=iJHyFkMUBSfjUovt29&conditions%5Bdeal_stage%5D%5B0%5D=2&conditions%5Bdeal_stage%5D%5B1%5D=4
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ Accept:
62
+ - application/json
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Date:
73
+ - Sat, 15 Jun 2013 15:48:18 GMT
74
+ Status:
75
+ - 200 OK
76
+ Connection:
77
+ - close
78
+ Content-Length:
79
+ - '2803'
80
+ Cache-Control:
81
+ - private, max-age=0, must-revalidate
82
+ Etag:
83
+ - ! '"380c7a95b73d0b66937207089a3fb633"'
84
+ Content-Type:
85
+ - application/json; charset=utf-8
86
+ Set-Cookie:
87
+ - _session_id=9764a4360965206c9e0496166475de5c; path=/; HttpOnly
88
+ - is_legacy_user=; domain=pipelinedeals.com; path=/; expires=Thu, 01-Jan-1970
89
+ 00:00:00 GMT
90
+ X-Runtime:
91
+ - '207'
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ! '{"pagination":{"per_page":200,"total":3,"pages":1,"page_var":"page","page":1},"entries":[{"shared_user_ids":[],"updated_at":"2013/06/15
95
+ 11:34:26 -0400","is_example":null,"closed_time":"2013/06/03 15:25:21 -0400","deal_stage":{"name":"Qualified
96
+ Lead","percent":10,"id":2},"value_in_cents":45600,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":0,"name":"architect
97
+ open-source bandwidth","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"source":{"name":"Website","id":5},"primary_contact_id":27,"id":1,"user_id":1,"created_at":"2013/05/31
98
+ 13:10:26 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":10,"custom_label_28":0,"custom_label_27":8,"custom_label_26":5,"custom_label_25":2},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":5,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/06/15
99
+ 11:45:19 -0400","is_example":null,"closed_time":null,"deal_stage":{"name":"Qualified
100
+ Lead","percent":10,"id":2},"value_in_cents":8283700,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":null,"possible_notify_user_ids":[],"probability":10,"name":"deploy
101
+ mission-critical infomediaries","deal_stage_id":2,"people":[{"last_name":"Grimes","id":27,"first_name":"Josue"}],"primary_contact_id":27,"id":2,"user_id":1,"created_at":"2013/05/31
102
+ 13:10:27 -0400","user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"primary_contact":{"last_name":"Grimes","id":27,"first_name":"Josue"},"custom_fields":{"custom_label_29":null,"custom_label_28":8283,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[27],"import_id":null,"expected_close_date":null,"company_id":null,"source_id":null,"expected_close_date_event_id":null},{"shared_user_ids":[],"updated_at":"2013/06/15
103
+ 11:45:17 -0400","is_example":null,"closed_time":null,"deal_stage":{"name":"Presentation","percent":50,"id":4},"value_in_cents":6759800,"summary":null,"status":2,"is_archived":false,"collaborators":[],"company":{"name":"Tillman
104
+ Inc","id":3},"possible_notify_user_ids":[],"probability":50,"name":"disintermediate
105
+ value-added technologies","deal_stage_id":4,"people":[],"primary_contact_id":null,"id":81,"user_id":1,"created_at":"2013/05/31
106
+ 13:11:17 -0400","primary_contact":null,"user":{"last_name":"hoboson","id":1,"first_name":"hobo"},"custom_fields":{"custom_label_29":null,"custom_label_28":33799,"custom_label_27":null,"custom_label_26":null,"custom_label_25":null},"person_ids":[],"import_id":null,"expected_close_date":null,"company_id":3,"source_id":null,"expected_close_date_event_id":null}]}'
107
+ http_version:
108
+ recorded_at: Sat, 15 Jun 2013 15:48:18 GMT
109
+ recorded_with: VCR 2.3.0