bugsnag-api 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +8 -0
  5. data/.yardopts +4 -0
  6. data/CHANGELOG.md +11 -0
  7. data/README.md +12 -4
  8. data/Rakefile +9 -0
  9. data/bugsnag-api.gemspec +5 -0
  10. data/lib/bugsnag/api.rb +20 -4
  11. data/lib/bugsnag/api/client.rb +47 -42
  12. data/lib/bugsnag/api/client/accounts.rb +8 -1
  13. data/lib/bugsnag/api/client/comments.rb +1 -1
  14. data/lib/bugsnag/api/client/errors.rb +1 -1
  15. data/lib/bugsnag/api/client/events.rb +3 -3
  16. data/lib/bugsnag/api/client/projects.rb +15 -4
  17. data/lib/bugsnag/api/client/users.rb +22 -4
  18. data/lib/bugsnag/api/configuration.rb +9 -6
  19. data/lib/bugsnag/api/error.rb +11 -1
  20. data/lib/bugsnag/api/version.rb +1 -1
  21. data/spec/bugsnag/api/client/accounts_spec.rb +45 -0
  22. data/spec/bugsnag/api/client/comments_spec.rb +58 -0
  23. data/spec/bugsnag/api/client/errors_spec.rb +69 -0
  24. data/spec/bugsnag/api/client/events_spec.rb +52 -0
  25. data/spec/bugsnag/api/client/projects_spec.rb +87 -0
  26. data/spec/bugsnag/api/client/users_spec.rb +105 -0
  27. data/spec/bugsnag/api/client_spec.rb +130 -0
  28. data/spec/bugsnag/api_spec.rb +44 -0
  29. data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +56 -0
  30. data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +56 -0
  31. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +49 -0
  32. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +51 -0
  33. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +49 -0
  34. data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +107 -0
  35. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +51 -0
  36. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +97 -0
  37. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +92 -0
  38. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +97 -0
  39. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +48 -0
  40. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +48 -0
  41. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +48 -0
  42. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +48 -0
  43. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +48 -0
  44. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +64 -0
  45. data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +64 -0
  46. data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +56 -0
  47. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +61 -0
  48. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +63 -0
  49. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +50 -0
  50. data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +61 -0
  51. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +91 -0
  52. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +95 -0
  53. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +95 -0
  54. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +49 -0
  55. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +51 -0
  56. data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +48 -0
  57. data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +49 -0
  58. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +48 -0
  59. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +48 -0
  60. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +89 -0
  61. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +93 -0
  62. data/spec/spec_helper.rb +122 -0
  63. metadata +161 -4
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/users/<BUGSNAG_USER_ID>/projects
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Link:
30
+ - <https://api.bugsnag.com/users/<BUGSNAG_USER_ID>/projects?direction=desc&offset=5404f2a364657377ae0000ad&per_page=30&sort=created_at>;
31
+ rel="next"
32
+ Content-Type:
33
+ - application/json; charset=utf-8
34
+ Etag:
35
+ - '"062bf83e35805172fb260f1eb1ad7d55"'
36
+ Cache-Control:
37
+ - max-age=0, private, must-revalidate
38
+ X-Request-Id:
39
+ - ec1585e8-99c9-4cf3-923f-d216b7e7311e
40
+ X-Runtime:
41
+ - '0.588697'
42
+ Date:
43
+ - Tue, 02 Sep 2014 02:49:33 GMT
44
+ Connection:
45
+ - close
46
+ body:
47
+ encoding: UTF-8
48
+ string: '[{"id":"5405303c646573a55900001a","name":"Example","type":"other","created_at":"2014-09-02T02:49:32.800Z","updated_at":"2014-09-02T02:49:32.800Z","release_stages":[],"api_key":"37d671bec6d4290b9c194d42749c16d9","errors":0,"url":"https://api.bugsnag.com/projects/5405303c646573a55900001a","errors_url":"https://api.bugsnag.com/projects/5405303c646573a55900001a/errors","events_url":"https://api.bugsnag.com/projects/5405303c646573a55900001a/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-44","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"54053013646573a55900000b","name":"Example","type":"other","created_at":"2014-09-02T02:48:51.151Z","updated_at":"2014-09-02T02:48:51.151Z","release_stages":[],"api_key":"de2eb797753512efa7df31fe769f3383","errors":0,"url":"https://api.bugsnag.com/projects/54053013646573a55900000b","errors_url":"https://api.bugsnag.com/projects/54053013646573a55900000b/errors","events_url":"https://api.bugsnag.com/projects/54053013646573a55900000b/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-43","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"54053011646573a559000009","name":"New
49
+ project name","type":"other","created_at":"2014-09-02T02:48:49.597Z","updated_at":"2014-09-02T02:48:49.741Z","release_stages":[],"api_key":"b3fb3256a08ab8ee130b1da962670558","errors":0,"url":"https://api.bugsnag.com/projects/54053011646573a559000009","errors_url":"https://api.bugsnag.com/projects/54053011646573a559000009/errors","events_url":"https://api.bugsnag.com/projects/54053011646573a559000009/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-8","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"54053011646573a559000007","name":"Example","type":"other","created_at":"2014-09-02T02:48:49.310Z","updated_at":"2014-09-02T02:48:49.310Z","release_stages":[],"api_key":"1333cc6bff16c0569a15e432bd0ffb37","errors":0,"url":"https://api.bugsnag.com/projects/54053011646573a559000007","errors_url":"https://api.bugsnag.com/projects/54053011646573a559000007/errors","events_url":"https://api.bugsnag.com/projects/54053011646573a559000007/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-41","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5405022064657392d2000060","name":"New
50
+ project name","type":"other","created_at":"2014-09-01T23:32:48.793Z","updated_at":"2014-09-01T23:32:48.943Z","release_stages":[],"api_key":"bcb0cff6ade96ec6ff056fa25991cafc","errors":0,"url":"https://api.bugsnag.com/projects/5405022064657392d2000060","errors_url":"https://api.bugsnag.com/projects/5405022064657392d2000060/errors","events_url":"https://api.bugsnag.com/projects/5405022064657392d2000060/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-7","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5405022064657392d200005c","name":"Example","type":"other","created_at":"2014-09-01T23:32:48.263Z","updated_at":"2014-09-01T23:32:48.263Z","release_stages":[],"api_key":"268546df26fa6fe09bb39370979d3189","errors":0,"url":"https://api.bugsnag.com/projects/5405022064657392d200005c","errors_url":"https://api.bugsnag.com/projects/5405022064657392d200005c/errors","events_url":"https://api.bugsnag.com/projects/5405022064657392d200005c/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-37","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5405022064657392d200005a","name":"Example","type":"other","created_at":"2014-09-01T23:32:48.113Z","updated_at":"2014-09-01T23:32:48.113Z","release_stages":[],"api_key":"57aa60eb3c222a68548790f964cf7440","errors":0,"url":"https://api.bugsnag.com/projects/5405022064657392d200005a","errors_url":"https://api.bugsnag.com/projects/5405022064657392d200005a/errors","events_url":"https://api.bugsnag.com/projects/5405022064657392d200005a/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-36","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"540500ab64657392d200004a","name":"Example","type":"other","created_at":"2014-09-01T23:26:35.548Z","updated_at":"2014-09-01T23:26:35.548Z","release_stages":[],"api_key":"ec49611a3378463db857644379c071ee","errors":0,"url":"https://api.bugsnag.com/projects/540500ab64657392d200004a","errors_url":"https://api.bugsnag.com/projects/540500ab64657392d200004a/errors","events_url":"https://api.bugsnag.com/projects/540500ab64657392d200004a/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-35","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"540500ab64657392d2000046","name":"Example","type":"other","created_at":"2014-09-01T23:26:35.024Z","updated_at":"2014-09-01T23:26:35.024Z","release_stages":[],"api_key":"7f1308cd37cc18772045ba6ee7de3a13","errors":0,"url":"https://api.bugsnag.com/projects/540500ab64657392d2000046","errors_url":"https://api.bugsnag.com/projects/540500ab64657392d2000046/errors","events_url":"https://api.bugsnag.com/projects/540500ab64657392d2000046/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-33","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"540500aa64657392d2000044","name":"New
51
+ project name","type":"other","created_at":"2014-09-01T23:26:34.711Z","updated_at":"2014-09-01T23:26:34.855Z","release_stages":[],"api_key":"5fee4fcc1d57ea24a1b7747ddfa15813","errors":0,"url":"https://api.bugsnag.com/projects/540500aa64657392d2000044","errors_url":"https://api.bugsnag.com/projects/540500aa64657392d2000044/errors","events_url":"https://api.bugsnag.com/projects/540500aa64657392d2000044/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-6","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe7d64657392d200003e","name":"Example","type":"other","created_at":"2014-09-01T23:17:17.776Z","updated_at":"2014-09-01T23:17:17.776Z","release_stages":[],"api_key":"23a14cd898a8286f34b9eada14a0ba75","errors":0,"url":"https://api.bugsnag.com/projects/5404fe7d64657392d200003e","errors_url":"https://api.bugsnag.com/projects/5404fe7d64657392d200003e/errors","events_url":"https://api.bugsnag.com/projects/5404fe7d64657392d200003e/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-31","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe7c64657392d200003c","name":"New
52
+ project name","type":"other","created_at":"2014-09-01T23:17:16.479Z","updated_at":"2014-09-01T23:17:16.633Z","release_stages":[],"api_key":"d3c3c8165d5ae607e07db92c72fa585f","errors":0,"url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003c","errors_url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003c/errors","events_url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003c/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-5","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe7c64657392d200003a","name":"Example","type":"other","created_at":"2014-09-01T23:17:16.184Z","updated_at":"2014-09-01T23:17:16.184Z","release_stages":[],"api_key":"a7f480b542e9dc5408d000844c207d8d","errors":0,"url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003a","errors_url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003a/errors","events_url":"https://api.bugsnag.com/projects/5404fe7c64657392d200003a/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-29","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe5f64657392d2000028","name":"Example","type":"other","created_at":"2014-09-01T23:16:47.430Z","updated_at":"2014-09-01T23:16:47.430Z","release_stages":[],"api_key":"912025b71b986bd74573ebdbec9e66c7","errors":0,"url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000028","errors_url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000028/errors","events_url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000028/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-27","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe5f64657392d2000026","name":"Example","type":"other","created_at":"2014-09-01T23:16:47.146Z","updated_at":"2014-09-01T23:16:47.146Z","release_stages":[],"api_key":"419645b497f2a8c89fcd7abaad5f6c10","errors":0,"url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000026","errors_url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000026/errors","events_url":"https://api.bugsnag.com/projects/5404fe5f64657392d2000026/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-26","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe5e64657392d2000024","name":"New
53
+ project name","type":"other","created_at":"2014-09-01T23:16:46.838Z","updated_at":"2014-09-01T23:16:46.993Z","release_stages":[],"api_key":"b4bb159828be65636162a891f774f3e3","errors":0,"url":"https://api.bugsnag.com/projects/5404fe5e64657392d2000024","errors_url":"https://api.bugsnag.com/projects/5404fe5e64657392d2000024/errors","events_url":"https://api.bugsnag.com/projects/5404fe5e64657392d2000024/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-4","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe2c64657392d2000017","name":"Example","type":"other","created_at":"2014-09-01T23:15:56.161Z","updated_at":"2014-09-01T23:15:56.161Z","release_stages":[],"api_key":"38068ee0ec7b213d1ce67dec2714a989","errors":0,"url":"https://api.bugsnag.com/projects/5404fe2c64657392d2000017","errors_url":"https://api.bugsnag.com/projects/5404fe2c64657392d2000017/errors","events_url":"https://api.bugsnag.com/projects/5404fe2c64657392d2000017/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-23","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe2b64657392d2000015","name":"New
54
+ project name","type":"other","created_at":"2014-09-01T23:15:55.842Z","updated_at":"2014-09-01T23:15:56.011Z","release_stages":[],"api_key":"e8ac3d90c39dbe02099f6a38dbc3f94e","errors":0,"url":"https://api.bugsnag.com/projects/5404fe2b64657392d2000015","errors_url":"https://api.bugsnag.com/projects/5404fe2b64657392d2000015/errors","events_url":"https://api.bugsnag.com/projects/5404fe2b64657392d2000015/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-3","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fe2a64657392d2000011","name":"Example","type":"other","created_at":"2014-09-01T23:15:54.254Z","updated_at":"2014-09-01T23:15:54.254Z","release_stages":[],"api_key":"7e64544fdb68a612f6137fe222e62b84","errors":0,"url":"https://api.bugsnag.com/projects/5404fe2a64657392d2000011","errors_url":"https://api.bugsnag.com/projects/5404fe2a64657392d2000011/errors","events_url":"https://api.bugsnag.com/projects/5404fe2a64657392d2000011/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-20","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fdd164657392d200000f","name":"Example","type":"other","created_at":"2014-09-01T23:14:25.366Z","updated_at":"2014-09-01T23:14:25.366Z","release_stages":[],"api_key":"0c08a9591215d1dfe01a54267efe6eb1","errors":0,"url":"https://api.bugsnag.com/projects/5404fdd164657392d200000f","errors_url":"https://api.bugsnag.com/projects/5404fdd164657392d200000f/errors","events_url":"https://api.bugsnag.com/projects/5404fdd164657392d200000f/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-19","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fdd164657392d200000d","name":"New
55
+ project name","type":"other","created_at":"2014-09-01T23:14:25.072Z","updated_at":"2014-09-01T23:14:25.216Z","release_stages":[],"api_key":"c27a5bee5dcddd4d6532506206d97f31","errors":0,"url":"https://api.bugsnag.com/projects/5404fdd164657392d200000d","errors_url":"https://api.bugsnag.com/projects/5404fdd164657392d200000d/errors","events_url":"https://api.bugsnag.com/projects/5404fdd164657392d200000d/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-2","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404fdcf64657392d2000009","name":"Example","type":"other","created_at":"2014-09-01T23:14:23.613Z","updated_at":"2014-09-01T23:14:23.613Z","release_stages":[],"api_key":"bb4221edf193842fdd58d7fff48571dc","errors":0,"url":"https://api.bugsnag.com/projects/5404fdcf64657392d2000009","errors_url":"https://api.bugsnag.com/projects/5404fdcf64657392d2000009/errors","events_url":"https://api.bugsnag.com/projects/5404fdcf64657392d2000009/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-16","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f48764657377ae0000c2","name":"New
56
+ project name","type":"other","created_at":"2014-09-01T22:34:47.326Z","updated_at":"2014-09-01T22:34:47.470Z","release_stages":[],"api_key":"d6ed73132c00716ab941a3c1210f19dc","errors":0,"url":"https://api.bugsnag.com/projects/5404f48764657377ae0000c2","errors_url":"https://api.bugsnag.com/projects/5404f48764657377ae0000c2/errors","events_url":"https://api.bugsnag.com/projects/5404f48764657377ae0000c2/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-1","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f48664657377ae0000be","name":"Example","type":"other","created_at":"2014-09-01T22:34:46.800Z","updated_at":"2014-09-01T22:34:46.800Z","release_stages":[],"api_key":"09ba263b1208979778483c0b883959b2","errors":0,"url":"https://api.bugsnag.com/projects/5404f48664657377ae0000be","errors_url":"https://api.bugsnag.com/projects/5404f48664657377ae0000be/errors","events_url":"https://api.bugsnag.com/projects/5404f48664657377ae0000be/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-13","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f48664657377ae0000bc","name":"Example","type":"other","created_at":"2014-09-01T22:34:46.334Z","updated_at":"2014-09-01T22:34:46.334Z","release_stages":[],"api_key":"336e7604b06a0fb151eaf27948e31a3e","errors":0,"url":"https://api.bugsnag.com/projects/5404f48664657377ae0000bc","errors_url":"https://api.bugsnag.com/projects/5404f48664657377ae0000bc/errors","events_url":"https://api.bugsnag.com/projects/5404f48664657377ae0000bc/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-12","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f38764657377ae0000ba","name":"Example","type":"other","created_at":"2014-09-01T22:30:31.694Z","updated_at":"2014-09-01T22:30:31.694Z","release_stages":[],"api_key":"0eb284756368a6452eb2be0b00fb78e3","errors":0,"url":"https://api.bugsnag.com/projects/5404f38764657377ae0000ba","errors_url":"https://api.bugsnag.com/projects/5404f38764657377ae0000ba/errors","events_url":"https://api.bugsnag.com/projects/5404f38764657377ae0000ba/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-11","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f38764657377ae0000b8","name":"New
57
+ project name","type":"other","created_at":"2014-09-01T22:30:31.410Z","updated_at":"2014-09-01T22:30:31.549Z","release_stages":[],"api_key":"f5238ccbd6e65babc579e58530fb7b88","errors":0,"url":"https://api.bugsnag.com/projects/5404f38764657377ae0000b8","errors_url":"https://api.bugsnag.com/projects/5404f38764657377ae0000b8/errors","events_url":"https://api.bugsnag.com/projects/5404f38764657377ae0000b8/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f38664657377ae0000b4","name":"Example","type":"other","created_at":"2014-09-01T22:30:30.403Z","updated_at":"2014-09-01T22:30:30.403Z","release_stages":[],"api_key":"7e1d58c9fda05c83c51ba1283a669612","errors":0,"url":"https://api.bugsnag.com/projects/5404f38664657377ae0000b4","errors_url":"https://api.bugsnag.com/projects/5404f38664657377ae0000b4/errors","events_url":"https://api.bugsnag.com/projects/5404f38664657377ae0000b4/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-8","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f2a464657377ae0000b1","name":"Baron
58
+ Leuschke","type":"other","created_at":"2014-09-01T22:26:44.210Z","updated_at":"2014-09-01T22:26:44.606Z","release_stages":[],"api_key":"55d1d7a8848c757cf1cd206ba1e92165","errors":0,"url":"https://api.bugsnag.com/projects/5404f2a464657377ae0000b1","errors_url":"https://api.bugsnag.com/projects/5404f2a464657377ae0000b1/errors","events_url":"https://api.bugsnag.com/projects/5404f2a464657377ae0000b1/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/baron-leuschke","icon":"http://bugsnag.dev/assets/frameworks/other.png"},{"id":"5404f2a364657377ae0000ad","name":"Example","type":"other","created_at":"2014-09-01T22:26:43.661Z","updated_at":"2014-09-01T22:26:43.661Z","release_stages":[],"api_key":"ac6eba5995ab3c039a12fa8d3fb30e78","errors":0,"url":"https://api.bugsnag.com/projects/5404f2a364657377ae0000ad","errors_url":"https://api.bugsnag.com/projects/5404f2a364657377ae0000ad/errors","events_url":"https://api.bugsnag.com/projects/5404f2a364657377ae0000ad/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-5","icon":"http://bugsnag.dev/assets/frameworks/other.png"}]'
59
+ http_version:
60
+ recorded_at: Tue, 02 Sep 2014 02:49:33 GMT
61
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/accounts/<BUGSNAG_ACCOUNT_ID>/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Example"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Location:
30
+ - https://api.bugsnag.com/projects/5405303d646573a55900001e
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - '"8ed8cc783377b7a1d53ab17cb553a6cc"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - bc9f0d6c-3864-4091-97a7-09a3116e0710
39
+ X-Runtime:
40
+ - '0.133712'
41
+ Date:
42
+ - Tue, 02 Sep 2014 02:49:33 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"id":"5405303d646573a55900001e","name":"Example","type":"other","created_at":"2014-09-02T02:49:33.887Z","updated_at":"2014-09-02T02:49:33.887Z","release_stages":[],"api_key":"8addb629c59a43640dc84c0e3fd8f64f","errors":0,"url":"https://api.bugsnag.com/projects/5405303d646573a55900001e","errors_url":"https://api.bugsnag.com/projects/5405303d646573a55900001e/errors","events_url":"https://api.bugsnag.com/projects/5405303d646573a55900001e/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-46","icon":"http://bugsnag.dev/assets/frameworks/other.png"}'
48
+ http_version:
49
+ recorded_at: Tue, 02 Sep 2014 02:49:33 GMT
50
+ - request:
51
+ method: delete
52
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/projects/5405303d646573a55900001e
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{}'
56
+ headers:
57
+ User-Agent:
58
+ - Bugsnag API Ruby Gem 1.0.0
59
+ Content-Type:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - '*/*'
65
+ response:
66
+ status:
67
+ code: 204
68
+ message: No Content
69
+ headers:
70
+ X-Frame-Options:
71
+ - SAMEORIGIN
72
+ X-Xss-Protection:
73
+ - 1; mode=block
74
+ X-Content-Type-Options:
75
+ - nosniff
76
+ Cache-Control:
77
+ - no-cache
78
+ X-Request-Id:
79
+ - 498e44cf-2907-463a-a80f-12fd231d8afa
80
+ X-Runtime:
81
+ - '0.082773'
82
+ Date:
83
+ - Tue, 02 Sep 2014 02:49:34 GMT
84
+ Connection:
85
+ - close
86
+ body:
87
+ encoding: UTF-8
88
+ string: ''
89
+ http_version:
90
+ recorded_at: Tue, 02 Sep 2014 02:49:34 GMT
91
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/accounts/<BUGSNAG_ACCOUNT_ID>/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Example"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Location:
30
+ - https://api.bugsnag.com/projects/5405303e646573a559000020
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - '"335125519a0789b8c49d03846759ee5c"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 96277b47-467c-4975-8b4d-ccad599d119f
39
+ X-Runtime:
40
+ - '0.133943'
41
+ Date:
42
+ - Tue, 02 Sep 2014 02:49:34 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"id":"5405303e646573a559000020","name":"Example","type":"other","created_at":"2014-09-02T02:49:34.132Z","updated_at":"2014-09-02T02:49:34.132Z","release_stages":[],"api_key":"341518c5e3e53a6ba496e8b41557bd8b","errors":0,"url":"https://api.bugsnag.com/projects/5405303e646573a559000020","errors_url":"https://api.bugsnag.com/projects/5405303e646573a559000020/errors","events_url":"https://api.bugsnag.com/projects/5405303e646573a559000020/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-47","icon":"http://bugsnag.dev/assets/frameworks/other.png"}'
48
+ http_version:
49
+ recorded_at: Tue, 02 Sep 2014 02:49:34 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/projects/5405303e646573a559000020
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Bugsnag API Ruby Gem 1.0.0
59
+ Content-Type:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - '*/*'
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ X-Frame-Options:
71
+ - SAMEORIGIN
72
+ X-Xss-Protection:
73
+ - 1; mode=block
74
+ X-Content-Type-Options:
75
+ - nosniff
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Etag:
79
+ - '"335125519a0789b8c49d03846759ee5c"'
80
+ Cache-Control:
81
+ - max-age=0, private, must-revalidate
82
+ X-Request-Id:
83
+ - b986a49d-6c68-4cf2-9e09-acfc5ab4261e
84
+ X-Runtime:
85
+ - '0.116603'
86
+ Date:
87
+ - Tue, 02 Sep 2014 02:49:34 GMT
88
+ Connection:
89
+ - close
90
+ body:
91
+ encoding: UTF-8
92
+ string: '{"id":"5405303e646573a559000020","name":"Example","type":"other","created_at":"2014-09-02T02:49:34.132Z","updated_at":"2014-09-02T02:49:34.132Z","release_stages":[],"api_key":"341518c5e3e53a6ba496e8b41557bd8b","errors":0,"url":"https://api.bugsnag.com/projects/5405303e646573a559000020","errors_url":"https://api.bugsnag.com/projects/5405303e646573a559000020/errors","events_url":"https://api.bugsnag.com/projects/5405303e646573a559000020/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-47","icon":"http://bugsnag.dev/assets/frameworks/other.png"}'
93
+ http_version:
94
+ recorded_at: Tue, 02 Sep 2014 02:49:34 GMT
95
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/accounts/<BUGSNAG_ACCOUNT_ID>/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Example"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Location:
30
+ - https://api.bugsnag.com/projects/5405303d646573a55900001c
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - '"46abfc9ce482fc5089cd1d891ffcb1ae"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - d6671d4d-ae87-42b2-9f80-e69451634ae3
39
+ X-Runtime:
40
+ - '0.138510'
41
+ Date:
42
+ - Tue, 02 Sep 2014 02:49:33 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"id":"5405303d646573a55900001c","name":"Example","type":"other","created_at":"2014-09-02T02:49:33.596Z","updated_at":"2014-09-02T02:49:33.596Z","release_stages":[],"api_key":"ada3e64667cad729b8077bccec86e8be","errors":0,"url":"https://api.bugsnag.com/projects/5405303d646573a55900001c","errors_url":"https://api.bugsnag.com/projects/5405303d646573a55900001c/errors","events_url":"https://api.bugsnag.com/projects/5405303d646573a55900001c/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/example-45","icon":"http://bugsnag.dev/assets/frameworks/other.png"}'
48
+ http_version:
49
+ recorded_at: Tue, 02 Sep 2014 02:49:33 GMT
50
+ - request:
51
+ method: patch
52
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/projects/5405303d646573a55900001c
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"name":"New project name"}'
56
+ headers:
57
+ User-Agent:
58
+ - Bugsnag API Ruby Gem 1.0.0
59
+ Content-Type:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
63
+ Accept:
64
+ - '*/*'
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ X-Frame-Options:
71
+ - SAMEORIGIN
72
+ X-Xss-Protection:
73
+ - 1; mode=block
74
+ X-Content-Type-Options:
75
+ - nosniff
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Etag:
79
+ - '"548747dbad561d14be17b91007391b8c"'
80
+ Cache-Control:
81
+ - max-age=0, private, must-revalidate
82
+ X-Request-Id:
83
+ - c66ebc66-70c4-4cd2-a0f7-cb26f0b4977f
84
+ X-Runtime:
85
+ - '0.127956'
86
+ Date:
87
+ - Tue, 02 Sep 2014 02:49:33 GMT
88
+ Connection:
89
+ - close
90
+ body:
91
+ encoding: UTF-8
92
+ string: '{"id":"5405303d646573a55900001c","name":"New project name","type":"other","created_at":"2014-09-02T02:49:33.596Z","updated_at":"2014-09-02T02:49:33.738Z","release_stages":[],"api_key":"ada3e64667cad729b8077bccec86e8be","errors":0,"url":"https://api.bugsnag.com/projects/5405303d646573a55900001c","errors_url":"https://api.bugsnag.com/projects/5405303d646573a55900001c/errors","events_url":"https://api.bugsnag.com/projects/5405303d646573a55900001c/events","html_url":"http://bugsnag.dev/<BUGSNAG_ACCOUNT_ID>/new-project-name-9","icon":"http://bugsnag.dev/assets/frameworks/other.png"}'
93
+ http_version:
94
+ recorded_at: Tue, 02 Sep 2014 02:49:33 GMT
95
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<BUGSNAG_LOGIN>:<BUGSNAG_PASSWORD>@api.bugsnag.com/accounts/<BUGSNAG_ACCOUNT_ID>/users
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Etag:
32
+ - '"3a733fd3c2867b314fadd37f7c3ac1b5"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 8a048183-5e76-4791-a88d-41d82b2ea95c
37
+ X-Runtime:
38
+ - '0.135438'
39
+ Date:
40
+ - Tue, 02 Sep 2014 02:49:28 GMT
41
+ Connection:
42
+ - close
43
+ body:
44
+ encoding: UTF-8
45
+ string: '[{"id":"5404dc9c64657377ae000009","email":"example@example.com","name":null,"gravatar_id":"23463b99b62a72f26ed677cc556c44e8","gravatar_url":"https://secure.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8","url":"https://api.bugsnag.com/users/5404dc9c64657377ae000009","projects_url":"https://api.bugsnag.com/users/5404dc9c64657377ae000009/projects","account_admin":true,"html_url":"http://bugsnag.dev/accounts/test-account/collaborators/5404dc9c64657377ae000009/edit"},{"id":"<BUGSNAG_USER_ID>","email":"<BUGSNAG_EMAIL>","name":"James
46
+ Smith","gravatar_id":"8cbca651e77dc253a98e545590ed3387","gravatar_url":"https://secure.gravatar.com/avatar/8cbca651e77dc253a98e545590ed3387","url":"https://api.bugsnag.com/users/<BUGSNAG_USER_ID>","projects_url":"https://api.bugsnag.com/users/<BUGSNAG_USER_ID>/projects","account_admin":true,"html_url":"http://bugsnag.dev/accounts/test-account/collaborators/<BUGSNAG_USER_ID>/edit"}]'
47
+ http_version:
48
+ recorded_at: Tue, 02 Sep 2014 02:49:28 GMT
49
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bugsnag.com/account/users
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 1.0.0
12
+ Content-Type:
13
+ - application/json
14
+ Authorization:
15
+ - token <BUGSNAG_AUTH_TOKEN>
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - '*/*'
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - '"a6733c0e281e0fab08dc9d26c5152440"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 7514ca8a-4050-4acf-b7b9-357679b328fd
39
+ X-Runtime:
40
+ - '0.070611'
41
+ Date:
42
+ - Tue, 02 Sep 2014 02:49:28 GMT
43
+ Connection:
44
+ - close
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"id":"5404dc9c64657377ae000009","email":"example@example.com","name":null,"gravatar_id":"23463b99b62a72f26ed677cc556c44e8","gravatar_url":"https://secure.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8","account_admin":true,"url":"https://api.bugsnag.com/users/5404dc9c64657377ae000009","projects_url":"https://api.bugsnag.com/users/5404dc9c64657377ae000009/projects","html_url":"http://bugsnag.dev/accounts/test-account/collaborators/5404dc9c64657377ae000009/edit"},{"id":"<BUGSNAG_USER_ID>","email":"<BUGSNAG_EMAIL>","name":"James
48
+ Smith","gravatar_id":"8cbca651e77dc253a98e545590ed3387","gravatar_url":"https://secure.gravatar.com/avatar/8cbca651e77dc253a98e545590ed3387","account_admin":true,"url":"https://api.bugsnag.com/users/<BUGSNAG_USER_ID>","projects_url":"https://api.bugsnag.com/users/<BUGSNAG_USER_ID>/projects","html_url":"http://bugsnag.dev/accounts/test-account/collaborators/<BUGSNAG_USER_ID>/edit"}]'
49
+ http_version:
50
+ recorded_at: Tue, 02 Sep 2014 02:49:28 GMT
51
+ recorded_with: VCR 2.9.2