teamsnap_rb 1.3.3 → 2.0.0.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +131 -29
- data/lib/config/inflecto.rb +13 -0
- data/lib/config/oj.rb +5 -0
- data/lib/teamsnap.rb +36 -376
- data/lib/teamsnap/api.rb +113 -0
- data/lib/teamsnap/auth_middleware.rb +62 -0
- data/lib/teamsnap/client.rb +51 -0
- data/lib/teamsnap/collection.rb +125 -0
- data/lib/teamsnap/item.rb +100 -0
- data/lib/teamsnap/response.rb +101 -0
- data/lib/teamsnap/structure.rb +80 -0
- data/lib/teamsnap/version.rb +1 -1
- data/spec/cassettes/apiv3-init.yml +756 -124
- data/spec/cassettes/client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +56 -0
- data/spec/cassettes/structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +110 -0
- data/spec/cassettes/structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +57 -0
- data/spec/cassettes/structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +56 -0
- data/spec/cassettes/structure/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +56 -0
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +69 -0
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +69 -0
- data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +61 -0
- data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +62 -0
- data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +179 -0
- data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +120 -0
- data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +107 -0
- data/spec/cassettes/{teamsnap_rb/can_handle_errors_generated_by_command.yml → teamsnap__collection/can_handle_no_argument_errors_generated_by_command.yml} +10 -16
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +64 -0
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +70 -0
- data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +61 -0
- data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +57 -0
- data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +57 -0
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_array_of_objects_when_successful.yml +117 -0
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_empty_array_when_no_objects_exist.yml +111 -0
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_nil_if_it_does_NOT_exist.yml +111 -0
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +124 -0
- data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +57 -0
- data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +57 -0
- data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +69 -0
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +55 -0
- data/spec/cassettes/teamsnap_rb/{can_handle_an_error_with_bulk_load.yml → _bulk_load/can_handle_an_error_with_bulk_load.yml} +11 -23
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +121 -0
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +2405 -0
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +69 -0
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +2404 -0
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +2404 -0
- data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +267 -0
- data/spec/cassettes/teamsnap_rb/adds_find_if_search_is_available.yml +27 -30
- data/spec/cassettes/teamsnap_rb/adds_href_to_items.yml +31 -19
- data/spec/cassettes/teamsnap_rb/can_follow_plural_links.yml +118 -67
- data/spec/cassettes/teamsnap_rb/can_follow_singular_links.yml +59 -56
- data/spec/cassettes/teamsnap_rb/can_handle_links_with_no_data.yml +48 -38
- data/spec/cassettes/teamsnap_rb/can_handle_no_argument_errors_generated_by_command.yml +42 -0
- data/spec/cassettes/teamsnap_rb/handles_executing_an_action_via_commands.yml +32 -20
- data/spec/cassettes/teamsnap_rb/handles_executing_an_action_via_commands_with_multiple_params.yml +29 -404
- data/spec/cassettes/teamsnap_rb/handles_fetching_data_via_queries.yml +26 -23
- data/spec/cassettes/teamsnap_rb/handles_queries_with_no_data.yml +24 -28
- data/spec/cassettes/teamsnap_rb/raises_an_exception_if_find_returns_nothing.yml +24 -28
- data/spec/cassettes/teamsnap_rb/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_array_of_objects_when_successful.yml +53 -45
- data/spec/cassettes/teamsnap_rb/supports_relations_with_expected_behaviors/when_a_plural_relation_is_called/responds_with_an_empty_array_when_no_objects_exist.yml +50 -54
- data/spec/cassettes/teamsnap_rb/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_nil_if_it_does_NOT_exist.yml +50 -54
- data/spec/cassettes/teamsnap_rb/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +59 -58
- data/spec/spec_helper.rb +2 -0
- data/spec/teamsnap/client_spec.rb +75 -0
- data/spec/teamsnap/collection_spec.rb +155 -0
- data/spec/teamsnap/item_spec.rb +155 -0
- data/spec/teamsnap/structure_spec.rb +63 -0
- data/spec/teamsnap_spec.rb +169 -157
- data/teamsnap_rb.gemspec +1 -1
- metadata +92 -15
- data/spec/cassettes/teamsnap_rb/can_handle_an_empty_bulk_load.yml +0 -60
- data/spec/cassettes/teamsnap_rb/can_use_bulk_load.yml +0 -74
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=a6ea1fb3-621f-431e-98cc-7baece5e9018&hmac_timestamp=1457993767
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: "{}"
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.1
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 6900d2df3ceca17d0bfd04cff2e3dc18f30dd52b761959d86091367901eb8054
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 400
|
@@ -20,29 +20,23 @@ http_interactions:
|
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
22
|
- '70'
|
23
|
-
Connection:
|
24
|
-
- keep-alive
|
25
|
-
Status:
|
26
|
-
- 400 Bad Request
|
27
23
|
X-Content-Type-Options:
|
28
24
|
- nosniff
|
29
25
|
Cache-Control:
|
30
26
|
- no-cache
|
31
27
|
X-Request-Id:
|
32
|
-
-
|
28
|
+
- 8c5dbaac-3985-401b-a07d-2da831e817c0
|
33
29
|
X-Runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
37
|
-
Date:
|
38
|
-
- Wed, 14 Oct 2015 02:03:36 GMT
|
30
|
+
- '0.032574'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
39
33
|
Server:
|
40
|
-
-
|
34
|
+
- thin
|
41
35
|
body:
|
42
36
|
encoding: UTF-8
|
43
37
|
string: '{"collection":{"error":{"message":"You must provide the member_id."}}}'
|
44
38
|
http_version: '1.1'
|
45
39
|
adapter_metadata:
|
46
|
-
effective_url: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=
|
47
|
-
recorded_at:
|
40
|
+
effective_url: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=a6ea1fb3-621f-431e-98cc-7baece5e9018&hmac_timestamp=1457993767
|
41
|
+
recorded_at: Mon, 14 Mar 2016 22:16:07 GMT
|
48
42
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,64 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=2a0d6d51-70d9-4568-8ea3-08cdffbbfe34&hmac_timestamp=1457993768
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"member_id":1}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- 9be470037a0b247ac9d6a3fabb6f7840321766a33ecb9d97ef8b715de4015806
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Location:
|
22
|
+
- "/members/search?id=1"
|
23
|
+
Content-Length:
|
24
|
+
- '10347'
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
ETag:
|
28
|
+
- '"a528638b08d47cb902acd5cde1c3661c"'
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- f9c75647-89b2-49a0-bfe7-fcd4910f25e7
|
33
|
+
X-Runtime:
|
34
|
+
- '0.111912'
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
Server:
|
38
|
+
- thin
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/members","rel":"members","template":{"data":[{"name":"first_name","value":null},{"name":"last_name","value":null},{"name":"gender","value":null},{"name":"position","value":null},{"name":"is_manager","value":null},{"name":"birthday","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
42
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
43
|
+
is deprecated and will be removed in a future version, use is_address_hidden
|
44
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/disable_member"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
45
|
+
number of items to return for each page. Sending this parameter with the query
|
46
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
47
|
+
number of the page to be returned. This requires that paging be turned on
|
48
|
+
by also providing the page_size parameter."}]},{"rel":"managers","href":"http://localhost:3000/members/managers","data":[{"name":"team_id","value":null}]},{"rel":"personas","href":"http://localhost:3000/members/personas","prompt":"Given
|
49
|
+
a user ID, returns members directly associated with the user as well as members
|
50
|
+
associated with the user via a shared access contact.","data":[{"name":"user_id","value":null}]},{"rel":"owner","href":"http://localhost:3000/members/owner","data":[{"name":"team_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
51
|
+
a user ID, returns all members associated with user''s active season teams. If
|
52
|
+
include_archived_teams (boolean) parameter is supplied, members associated
|
53
|
+
with archived teams will be returned as well.","data":[{"name":"user_id","value":null},{"name":"include_archived_teams","value":null}]}],"commands":[{"rel":"disable_member","href":"http://localhost:3000/members/disable_member","data":[{"name":"member_id","value":null}]},{"rel":"upload_member_photo","href":"http://localhost:3000/members/upload_member_photo","data":[{"name":"member_id","value":null},{"name":"file","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"remove_member_photo","href":"http://localhost:3000/members/remove_member_photo","data":[{"name":"member_id","value":null}]},{"rel":"generate_member_thumbnail","href":"http://localhost:3000/members/generate_member_thumbnail","data":[{"name":"member_id","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"import_from_team","href":"http://localhost:3000/members/import_from_team","prompt":"Given
|
54
|
+
source_member_ids (array) and a destination_team_id, source members and related
|
55
|
+
member data will be imported to the destination team. Newly created members
|
56
|
+
will be returned.","data":[{"name":"source_member_ids","value":null},{"name":"destination_team_id","value":null}]}],"items":[{"href":"http://localhost:3000/members/1","data":[{"name":"id","value":1},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Commie"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
57
|
+
is deprecated and will be removed in a future version, use is_address_hidden
|
58
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
59
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"invitation_code","value":null},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":false},{"name":"is_invited","value":false},{"name":"is_manager","value":true},{"name":"is_non_player","value":true},{"name":"is_owner","value":true},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"type":"DateTime"},{"name":"last_name","value":"Commish"},{"name":"position","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-03-14T22:16:08Z","type":"DateTime"},{"name":"created_at","value":"2016-02-08T20:04:06Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=1"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=1"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=1"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=1"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=1"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=1"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=1"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=1"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=1"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=1"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=1"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=1"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=1"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=1"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=1"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/1"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=1"},{"rel":"team","href":"http://localhost:3000/teams/"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=1"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=1"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=1"}],"rel":"member-1"}]}}'
|
60
|
+
http_version: '1.1'
|
61
|
+
adapter_metadata:
|
62
|
+
effective_url: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=2a0d6d51-70d9-4568-8ea3-08cdffbbfe34&hmac_timestamp=1457993768
|
63
|
+
recorded_at: Mon, 14 Mar 2016 22:16:08 GMT
|
64
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/teams/invite
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"team_id":1,"member_id":[9,11],"notify_as_member_id":3,"introduction":"Welcome!
|
9
|
+
This is our team\n ...the superstars!"}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v0.9.1
|
13
|
+
Authorization:
|
14
|
+
- Bearer 6-classic-dont_tell_the_cops
|
15
|
+
response:
|
16
|
+
status:
|
17
|
+
code: 202
|
18
|
+
message: Accepted
|
19
|
+
headers:
|
20
|
+
Content-Type:
|
21
|
+
- application/vnd.collection+json
|
22
|
+
Content-Length:
|
23
|
+
- '16212'
|
24
|
+
X-Content-Type-Options:
|
25
|
+
- nosniff
|
26
|
+
X-RateLimit-Limit:
|
27
|
+
- '5000'
|
28
|
+
X-RateLimit-Remaining:
|
29
|
+
- '4991'
|
30
|
+
X-RateLimit-Reset:
|
31
|
+
- '1457996804'
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
X-Request-Id:
|
35
|
+
- 66e60bb9-f329-46a3-8e80-6d4e9bd1f9d7
|
36
|
+
X-Runtime:
|
37
|
+
- '0.250853'
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
Server:
|
41
|
+
- thin
|
42
|
+
body:
|
43
|
+
encoding: UTF-8
|
44
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
45
|
+
time_zone parameter is required when creating a team, but for changing a team''s
|
46
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/invite"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
47
|
+
number of items to return for each page. Sending this parameter with the query
|
48
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
49
|
+
number of the page to be returned. This requires that paging be turned on
|
50
|
+
by also providing the page_size parameter."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
51
|
+
all teams accessible to current user that have the provided sport_id and have
|
52
|
+
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
53
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
54
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
55
|
+
team''s time zone. This is currently the only method of updating a team''s
|
56
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
57
|
+
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]}],"items":[{"href":"http://localhost:3000/members/9","data":[{"name":"id","value":9},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Uninvited
|
58
|
+
1"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
59
|
+
is deprecated and will be removed in a future version, use is_address_hidden
|
60
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
61
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"invitation_code","value":"56f87be47262d91bafb18135"},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":true},{"name":"is_invited","value":true},{"name":"is_manager","value":false},{"name":"is_non_player","value":false},{"name":"is_owner","value":false},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"type":"DateTime"},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-03-07T22:43:19Z","type":"DateTime"},{"name":"created_at","value":"2016-02-08T20:04:08Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=9"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=9"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=9"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=9"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=9"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=9"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=9"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=9"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=9"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=9"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=9"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=9"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=9"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=9"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=9"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=9"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=9"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=9"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=9"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/9"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=9"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=9"},{"rel":"team","href":"http://localhost:3000/teams/1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=9"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=9"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=9"}],"rel":"member-9"},{"href":"http://localhost:3000/members/11","data":[{"name":"id","value":11},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Invited
|
62
|
+
0"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
63
|
+
is deprecated and will be removed in a future version, use is_address_hidden
|
64
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
65
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"invitation_code","value":"r38b56316c6197d6ca9d8f3fd"},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":true},{"name":"is_invited","value":true},{"name":"is_manager","value":false},{"name":"is_non_player","value":false},{"name":"is_owner","value":false},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"type":"DateTime"},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-02-08T20:04:08Z","type":"DateTime"},{"name":"created_at","value":"2016-02-08T20:04:08Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=11"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=11"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=11"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=11"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=11"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=11"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=11"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=11"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=11"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=11"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=11"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=11"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=11"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=11"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=11"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=11"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=11"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=11"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=11"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/11"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=11"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=11"},{"rel":"team","href":"http://localhost:3000/teams/1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=11"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=11"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=11"}],"rel":"member-11"}]}}'
|
66
|
+
http_version: '1.1'
|
67
|
+
adapter_metadata:
|
68
|
+
effective_url: http://localhost:3000/teams/invite
|
69
|
+
recorded_at: Mon, 14 Mar 2016 22:16:08 GMT
|
70
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=c4a8d6f6-8cdc-4698-b62a-efeca0d35342&hmac_timestamp=1457993767
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- fe17c0c2d24c9ee09d20ace38f6f912af08a196b4e9ec2bac47fc0f1ca58df57
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Content-Length:
|
22
|
+
- '15385'
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
ETag:
|
26
|
+
- '"c95af9c4d3233d9c138897e485d31984"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- e83d9500-6df0-436f-b9a0-52f0fd582228
|
31
|
+
X-Runtime:
|
32
|
+
- '0.110728'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Server:
|
36
|
+
- thin
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
|
+
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
|
+
number of items to return for each page. Sending this parameter with the query
|
43
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
|
+
number of the page to be returned. This requires that paging be turned on
|
45
|
+
by also providing the page_size parameter."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
|
+
all teams accessible to current user that have the provided sport_id and have
|
47
|
+
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
49
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
50
|
+
team''s time zone. This is currently the only method of updating a team''s
|
51
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
52
|
+
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]}],"items":[{"href":"http://localhost:3000/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"division_name","value":null},{"name":"division_id","value":null},{"name":"is_archived_season","value":false},{"name":"is_retired","value":false},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"is_in_league","value":false},{"name":"location_country","value":"United
|
53
|
+
States"},{"name":"location_postal_code","value":"80951"},{"name":"location_latitude","value":null},{"name":"location_longitude","value":null},{"name":"name","value":"Base
|
54
|
+
Team"},{"name":"plan_id","value":14},{"name":"billed_at","value":"2016-02-08T00:00:00.000+00:00"},{"name":"season_name","value":null},{"name":"sport_id","value":1},{"name":"time_zone_description","value":"Mountain
|
55
|
+
Time (US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"updated_at","value":"2016-02-08T20:04:08Z","type":"DateTime"},{"name":"created_at","value":"2016-02-08T20:04:06Z","type":"DateTime"},{"name":"has_reached_roster_limit","value":false},{"name":"roster_limit","value":30},{"name":"has_exportable_media","value":false},{"name":"can_export_media","value":false},{"name":"last_accessed_at","value":null,"type":"DateTime"},{"name":"media_storage_used","value":0},{"name":"humanized_media_storage_used","value":"0
|
56
|
+
B"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?team_id=1"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?team_id=1"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?team_id=1"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?team_id=1"},{"rel":"calendar_http","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/08104750-b0cd-0133-8582-000c297f8dfc.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/08104750-b0cd-0133-8582-000c297f8dfc.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/08104750-b0cd-0133-8582-000c297f8dfc.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/08104750-b0cd-0133-8582-000c297f8dfc.ics"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?team_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?team_id=1"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?team_id=1"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?team_id=1"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses/search?team_id=1"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers/search?team_id=1"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts/search?team_id=1"},{"rel":"division_locations","href":"http://localhost:3000/division_locations/search?team_id=1"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses/search?team_id=1"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers/search?team_id=1"},{"rel":"division_members","href":"http://localhost:3000/division_members/search?team_id=1"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences/search?team_id=1"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?team_id=1"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?team_id=1"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?team_id=1"},{"rel":"events","href":"http://localhost:3000/events/search?team_id=1"},{"rel":"events_csv_export","href":"http://localhost:3000/exports/events_csv?hs=YszGJFFtdkxT%252Ba08BS5xyp1dHMOjVVvQPmlGdCebDpafs9qC6iM2Wgap55%252FDtoxV"},{"rel":"events_overview","href":"http://localhost:3000/events/overview?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?team_id=1"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=1"},{"rel":"locations","href":"http://localhost:3000/locations/search?team_id=1"},{"rel":"managers","href":"http://localhost:3000/members/managers?team_id=1"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?team_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?team_id=1"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?team_id=1"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?team_id=1"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?team_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?team_id=1"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?team_id=1"},{"rel":"members","href":"http://localhost:3000/members/search?team_id=1"},{"rel":"members_csv_export","href":"http://localhost:3000/exports/members_csv?hs=YszGJFFtdkxT%252Ba08BS5xyp1dHMOjVVvQPmlGdCebDpafs9qC6iM2Wgap55%252FDtoxV"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences/search?team_id=1"},{"rel":"opponents","href":"http://localhost:3000/opponents/search?team_id=1"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results/search?team_id=1"},{"rel":"owner","href":"http://localhost:3000/members/owner?team_id=1"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes/search?team_id=1"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies/search?team_id=1"},{"rel":"plan","href":"http://localhost:3000/plans/14"},{"rel":"sponsors","href":"http://localhost:3000/sponsors/search?team_id=1"},{"rel":"sport","href":"http://localhost:3000/sports/1"},{"rel":"statistics","href":"http://localhost:3000/statistics/search?team_id=1"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates/search?team_id=1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?team_id=1"},{"rel":"statistic_groups","href":"http://localhost:3000/statistic_groups/search?team_id=1"},{"rel":"team_fees","href":"http://localhost:3000/team_fees/search?team_id=1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?team_id=1"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?team_id=1"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups/search?team_id=1"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences/1"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences/1"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites/1"},{"rel":"team_results","href":"http://localhost:3000/teams_results/1"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics/search?team_id=1"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?team_id=1"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items/search?team_id=1"}],"rel":"team-1"}]}}'
|
57
|
+
http_version: '1.1'
|
58
|
+
adapter_metadata:
|
59
|
+
effective_url: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=c4a8d6f6-8cdc-4698-b62a-efeca0d35342&hmac_timestamp=1457993767
|
60
|
+
recorded_at: Mon, 14 Mar 2016 22:16:07 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=38add951-438e-4bc6-adfe-10b6c39e2b0a&hmac_timestamp=1457993768
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- a8a8b389b924efb913a3cb0639b62febd9bc651aee15fce10667a49ced6b1658
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Content-Length:
|
22
|
+
- '7306'
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
ETag:
|
26
|
+
- '"29ae94996fa51e430b272a94dc3bc418"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- b6557759-0e88-40ca-b551-0ee58a0fae69
|
31
|
+
X-Runtime:
|
32
|
+
- '0.050629'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Server:
|
36
|
+
- thin
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
|
+
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
|
+
number of items to return for each page. Sending this parameter with the query
|
43
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
|
+
number of the page to be returned. This requires that paging be turned on
|
45
|
+
by also providing the page_size parameter."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
|
+
all teams accessible to current user that have the provided sport_id and have
|
47
|
+
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
49
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
50
|
+
team''s time zone. This is currently the only method of updating a team''s
|
51
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
52
|
+
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]}]}}'
|
53
|
+
http_version: '1.1'
|
54
|
+
adapter_metadata:
|
55
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=38add951-438e-4bc6-adfe-10b6c39e2b0a&hmac_timestamp=1457993768
|
56
|
+
recorded_at: Mon, 14 Mar 2016 22:16:08 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=5bfa0c8a-072d-49b1-8d43-d86783117edc&hmac_timestamp=1457993767
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- 23b36e797859f60043b8c8b5e60a998b1a804101659508a659b84f517e7241af
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Content-Length:
|
22
|
+
- '7306'
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
ETag:
|
26
|
+
- '"29ae94996fa51e430b272a94dc3bc418"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 13b9d07d-55b7-4f92-b9bc-86b2704971d5
|
31
|
+
X-Runtime:
|
32
|
+
- '0.048128'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Server:
|
36
|
+
- thin
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
|
+
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"type","value":"team"}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"division_contact_email_addresses","href":"http://localhost:3000/division_contact_email_addresses"},{"rel":"division_contact_phone_numbers","href":"http://localhost:3000/division_contact_phone_numbers"},{"rel":"division_contacts","href":"http://localhost:3000/division_contacts"},{"rel":"division_locations","href":"http://localhost:3000/division_locations"},{"rel":"division_member_email_addresses","href":"http://localhost:3000/division_member_email_addresses"},{"rel":"division_member_phone_numbers","href":"http://localhost:3000/division_member_phone_numbers"},{"rel":"division_members","href":"http://localhost:3000/division_members"},{"rel":"division_members_preferences","href":"http://localhost:3000/division_members_preferences"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"events_overview","href":"http://localhost:3000/events/overview"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"paypal_currency","href":"http://localhost:3000/paypal_currencies"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"statistic","href":"http://localhost:3000/statistics"},{"rel":"statistic_aggregates","href":"http://localhost:3000/statistic_aggregates"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"statistic_group","href":"http://localhost:3000/statistic_groups"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"team_media_groups","href":"http://localhost:3000/team_media_groups"},{"rel":"team_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
|
+
number of items to return for each page. Sending this parameter with the query
|
43
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
|
+
number of the page to be returned. This requires that paging be turned on
|
45
|
+
by also providing the page_size parameter."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
|
+
all teams accessible to current user that have the provided sport_id and have
|
47
|
+
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
49
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
50
|
+
team''s time zone. This is currently the only method of updating a team''s
|
51
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
52
|
+
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]}]}}'
|
53
|
+
http_version: '1.1'
|
54
|
+
adapter_metadata:
|
55
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=5bfa0c8a-072d-49b1-8d43-d86783117edc&hmac_timestamp=1457993767
|
56
|
+
recorded_at: Mon, 14 Mar 2016 22:16:07 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,117 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=4c0fdfe9-12d9-4618-b9ea-ceb71ea4b2b6&hmac_timestamp=1457993768
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- a8f8a7b3e181118aec922d894feae8c6572d8838ffea6e07161c42c5ec30e43c
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Content-Length:
|
22
|
+
- '7815'
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
ETag:
|
26
|
+
- '"26c350748bd245446b2a0af66423c4fb"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- fe7eb212-5ef8-49a9-b981-4836fdb713ee
|
31
|
+
X-Runtime:
|
32
|
+
- '0.057157'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Server:
|
36
|
+
- thin
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/events","rel":"events","template":{"data":[{"name":"type","value":"event"},{"name":"additional_location_details","value":null},{"name":"browser_time_zone","value":null},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":null},{"name":"duration_in_minutes","value":null},{"name":"game_type_code","value":null},{"name":"icon_color","value":null},{"name":"is_canceled","value":null},{"name":"is_game","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"is_tbd","value":null},{"name":"label","value":null},{"name":"location_id","value":null},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":null},{"name":"notes","value":null},{"name":"notify_opponent","value":null},{"name":"notify_opponent_contacts_email","value":null},{"name":"notify_opponent_contacts_name","value":null},{"name":"notify_opponent_notes","value":null},{"name":"notify_team","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"opponent_id","value":null},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_include","value":null,"prompt":"When
|
40
|
+
updating a repeating event, this is a required field. Values are: \"all\"
|
41
|
+
- updates all events in this series, \"future\" - updates this event and all
|
42
|
+
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
43
|
+
code for the frequency of the repeated event, this is required with the \"repeating_include\"
|
44
|
+
attribute when creating a repeating event. Valid values are: \"1\" - repeat
|
45
|
+
an event daily, \"2\" - repeat an event weekly."},{"name":"repeating_until","value":null,"prompt":"A
|
46
|
+
date when the repeating event should end, this is inclusive so an event will
|
47
|
+
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
48
|
+
This attribute is required with \"repeating_type_code\" when creating a repeating
|
49
|
+
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
50
|
+
number of items to return for each page. Sending this parameter with the query
|
51
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
52
|
+
number of the page to be returned. This requires that paging be turned on
|
53
|
+
by also providing the page_size parameter."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
|
54
|
+
= [member_id, member_id]","data":[{"name":"id","value":null},{"name":"members_to_notify","value":null},{"name":"notify_team_as_member_id","value":null}]},{"rel":"update_final_score","href":"http://localhost:3000/events/update_final_score","prompt":"Update
|
55
|
+
the final score for an event","data":[{"name":"id","value":null},{"name":"points_for_team","value":null},{"name":"points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"is_overtime","value":null},{"name":"is_shootout","value":null},{"name":"results","value":null},{"name":"results_url","value":null}]},{"rel":"bulk_create","href":"http://localhost:3000/events/bulk_create","prompt":"event_ids
|
56
|
+
= [event_id, event_id]","data":[{"name":"templates","value":null},{"name":"team_id","value":null},{"name":"notify_team_as_member_id","value":null},{"name":"notify_team","value":null}]}],"items":[{"href":"http://localhost:3000/events/1","data":[{"name":"id","value":1},{"name":"type","value":"event"},{"name":"additional_location_details","value":"Court
|
57
|
+
#1"},{"name":"arrival_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"division_location_id","value":null},{"name":"doesnt_count_towards_record","value":false},{"name":"duration_in_minutes","value":120},{"name":"end_date","value":"2015-01-01T02:00:00Z","type":"DateTime"},{"name":"formatted_results","value":null},{"name":"game_type","value":"Not
|
58
|
+
Specified"},{"name":"game_type_code","value":null},{"name":"icon_color","value":"blue"},{"name":"is_canceled","value":false},{"name":"is_game","value":false},{"name":"is_overtime","value":false},{"name":"is_shootout","value":false},{"name":"is_tbd","value":false},{"name":"label","value":null},{"name":"location_id","value":1},{"name":"minutes_to_arrive_early","value":null},{"name":"name","value":"March
|
59
|
+
Madness Game 1"},{"name":"notes","value":null},{"name":"opponent_id","value":1},{"name":"points_for_opponent","value":null},{"name":"points_for_team","value":null},{"name":"repeating_type","value":null},{"name":"repeating_type_code","value":null},{"name":"repeating_uuid","value":null},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":"2015-01-01T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
|
60
|
+
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
61
|
+
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"source_time_zone_iana_name","value":"America/Denver"},{"name":"tracks_availability","value":true},{"name":"uniform","value":null},{"name":"is_league_controlled","value":false},{"name":"created_at","value":"2016-02-08T20:04:07Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-08T20:04:07Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=1"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/1.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=1"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"opponent","href":"http://localhost:3000/opponents/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-1"}]}}'
|
62
|
+
http_version: '1.1'
|
63
|
+
adapter_metadata:
|
64
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=4c0fdfe9-12d9-4618-b9ea-ceb71ea4b2b6&hmac_timestamp=1457993768
|
65
|
+
recorded_at: Mon, 14 Mar 2016 22:16:08 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=c1002a5b-bce8-4748-86ad-33444f8ab78b&hmac_timestamp=1457993768
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers:
|
73
|
+
User-Agent:
|
74
|
+
- Faraday v0.9.1
|
75
|
+
X-Teamsnap-Hmac:
|
76
|
+
- 53792886551fa1018994bfc37c01a401979a3551e186a6ffb316f4199b91a7b0
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 200
|
80
|
+
message: OK
|
81
|
+
headers:
|
82
|
+
Content-Type:
|
83
|
+
- application/vnd.collection+json
|
84
|
+
Content-Length:
|
85
|
+
- '13812'
|
86
|
+
X-Content-Type-Options:
|
87
|
+
- nosniff
|
88
|
+
ETag:
|
89
|
+
- '"8c05d2a502687b90522ec2f59012d42f"'
|
90
|
+
Cache-Control:
|
91
|
+
- max-age=0, private, must-revalidate
|
92
|
+
X-Request-Id:
|
93
|
+
- 38cff544-22be-47e9-a434-352e3854fe76
|
94
|
+
X-Runtime:
|
95
|
+
- '0.071769'
|
96
|
+
Connection:
|
97
|
+
- keep-alive
|
98
|
+
Server:
|
99
|
+
- thin
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"collection":{"version":"3.206.1","href":"http://localhost:3000/availabilities","rel":"availabilities","template":{"data":[{"name":"status_code","value":null},{"name":"notes","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"notes_author_member_id","value":null},{"name":"source","value":null},{"name":"type","value":"availability"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"notes_author_member","href":"http://localhost:3000/members"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/availabilities/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/availabilities/search","data":[{"name":"team_id","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null},{"name":"started_before","value":null},{"name":"started_after","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
103
|
+
number of items to return for each page. Sending this parameter with the query
|
104
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
105
|
+
number of the page to be returned. This requires that paging be turned on
|
106
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"bulk_mark_unset_availabilities","href":"http://localhost:3000/availabilities/bulk_mark_unset_availabilities","prompt":"Mark
|
107
|
+
all future unset availabilities to specified status_code for the specified
|
108
|
+
member_id","data":[{"name":"status_code","value":null},{"name":"member_id","value":null},{"name":"started_after","value":null}]}],"items":[{"href":"http://localhost:3000/availabilities/1","data":[{"name":"id","value":1},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":2},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Yes.
|
109
|
+
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-08T20:04:07Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-08T20:04:07Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/2"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-1"},{"href":"http://localhost:3000/availabilities/2","data":[{"name":"id","value":2},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":3},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Yes.
|
110
|
+
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-08T20:04:07Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-08T20:04:07Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/3"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-2"},{"href":"http://localhost:3000/availabilities/4","data":[{"name":"id","value":4},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":6},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Maybe.
|
111
|
+
I''m not sure yet."},{"name":"status_code","value":2},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-08T20:04:07Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-08T20:04:07Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/6"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-4"},{"href":"http://localhost:3000/availabilities/5","data":[{"name":"id","value":5},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":7},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"No.
|
112
|
+
I can''t make it."},{"name":"status_code","value":0},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-08T20:04:07Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-08T20:04:07Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/7"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-5"},{"href":"http://localhost:3000/availabilities/61","data":[{"name":"id","value":61},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":4},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/4"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-61"},{"href":"http://localhost:3000/availabilities/62","data":[{"name":"id","value":62},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":5},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/5"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-62"},{"href":"http://localhost:3000/availabilities/63","data":[{"name":"id","value":63},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":8},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/8"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-63"},{"href":"http://localhost:3000/availabilities/64","data":[{"name":"id","value":64},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":9},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/9"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-64"},{"href":"http://localhost:3000/availabilities/65","data":[{"name":"id","value":65},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":10},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/10"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-65"},{"href":"http://localhost:3000/availabilities/66","data":[{"name":"id","value":66},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":11},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/11"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-66"},{"href":"http://localhost:3000/availabilities/67","data":[{"name":"id","value":67},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":12},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/12"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-67"},{"href":"http://localhost:3000/availabilities/68","data":[{"name":"id","value":68},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":13},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/13"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-68"},{"href":"http://localhost:3000/availabilities/69","data":[{"name":"id","value":69},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":14},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/14"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-69"},{"href":"http://localhost:3000/availabilities/70","data":[{"name":"id","value":70},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":15},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/15"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-70"},{"href":"http://localhost:3000/availabilities/71","data":[{"name":"id","value":71},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":16},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/16"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-71"},{"href":"http://localhost:3000/availabilities/72","data":[{"name":"id","value":72},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":17},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/17"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-72"},{"href":"http://localhost:3000/availabilities/73","data":[{"name":"id","value":73},{"name":"type","value":"availability"},{"name":"event_id","value":1},{"name":"member_id","value":18},{"name":"notes","value":null},{"name":"notes_author_member_id","value":null},{"name":"status","value":"Unknown"},{"name":"status_code","value":null},{"name":"team_id","value":1},{"name":"created_at","value":"2016-02-29T20:59:34Z","type":"DateTime"},{"name":"updated_at","value":"2016-02-29T20:59:34Z","type":"DateTime"}],"links":[{"rel":"event","href":"http://localhost:3000/events/1"},{"rel":"member","href":"http://localhost:3000/members/18"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"availability-73"}]}}'
|
113
|
+
http_version: '1.1'
|
114
|
+
adapter_metadata:
|
115
|
+
effective_url: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=c1002a5b-bce8-4748-86ad-33444f8ab78b&hmac_timestamp=1457993768
|
116
|
+
recorded_at: Mon, 14 Mar 2016 22:16:09 GMT
|
117
|
+
recorded_with: VCR 2.9.3
|