teamsnap_rb 2.0.0.beta11 → 2.0.0.beta12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/teamsnap.rb +3 -5
- data/lib/teamsnap/version.rb +1 -1
- data/spec/cassettes/apiv3-init.yml +220 -186
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +9 -9
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +9 -9
- data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +19 -15
- data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +21 -15
- data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +60 -50
- data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +40 -30
- data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +37 -26
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +21 -15
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +18 -14
- data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +19 -15
- data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +16 -12
- data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +16 -12
- 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 +23 -23
- 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 +26 -21
- 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 +19 -19
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +30 -26
- data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +16 -12
- data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +16 -12
- data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +9 -9
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +8 -8
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_error_with_bulk_load_without_a_team_id.yml +6 -6
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +33 -33
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/accepts_test_file_arg_when_creating_HMAC.yml +2644 -9
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +160 -56
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +9 -9
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +159 -55
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +159 -55
- data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +36 -36
- data/spec/cassettes/uploading_files/uploads_a_file.yml +16 -10
- data/spec/cassettes/uploading_files/uploads_a_tempfile.yml +16 -10
- data/spec/teamsnap/collection_spec.rb +1 -1
- data/spec/teamsnap_spec.rb +1 -25
- metadata +2 -6
- data/spec/cassettes/apiv3-error.yml +0 -841
- data/spec/cassettes/teamsnap_rb/_server_error/Specifies_call_and_endpoint_that_was_unsuccessful.yml +0 -4989
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=6c66d094-194b-494a-a2fb-1125c5df21c8&hmac_timestamp=1470941486
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 5c7d4522727ccf1bf83351aaf7faddd0a7480cbacad1ac857fa4e3d763a1a6ee
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,30 +19,32 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '17336'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"25a0de50bfdb13b0ccda28fcd95b8b58"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- d575dae0-6b60-46dc-a7d5-7fc17e9f3e18
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.062511'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.306.2","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
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_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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","sort":["name"],"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
42
|
number of items to return for each page. Sending this parameter with the query
|
43
43
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
44
|
number of the page to be returned. This requires that paging be turned on
|
45
|
-
by also providing the page_size parameter."}
|
45
|
+
by also providing the page_size parameter."},{"name":"sort_name","value":null,"prompt":"Sort
|
46
|
+
the returned dataset based on the name field, valid values are ''asc'' or
|
47
|
+
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
48
|
all teams accessible to current user that have the provided sport_id and have
|
47
49
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
50
|
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
|
@@ -53,14 +55,16 @@ http_interactions:
|
|
53
55
|
(This endpoint subject to change) Allow commissioners to send invitations
|
54
56
|
to all owners on active teams in the division.","data":[{"name":"id","value":null}]},{"rel":"change_owner","href":"http://localhost:3000/teams/change_owner","prompt":"Beta:
|
55
57
|
(This endpoint subject to change) Allow commissioners to change the owner
|
56
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]}
|
58
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Beta:
|
59
|
+
(This endpoint subject to change) Search the teams on the division_id and
|
60
|
+
it''s descendants.","data":[{"name":"division_id","value":null},{"name":"is_active","value":null}]}],"items":[{"href":"http://localhost:3000/teams/1","data":[{"name":"id","value":1},{"name":"type","value":"team"},{"name":"active_season_team_id","value":null},{"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
|
57
61
|
States"},{"name":"location_postal_code","value":"80951"},{"name":"location_latitude","value":null},{"name":"location_longitude","value":null},{"name":"name","value":"Base
|
58
|
-
Team"},{"name":"plan_id","value":14},{"name":"billed_at","value":"2016-
|
62
|
+
Team"},{"name":"plan_id","value":14},{"name":"billed_at","value":"2016-08-10T07:00:00Z"},{"name":"season_name","value":null},{"name":"sport_id","value":1},{"name":"time_zone","value":"Mountain
|
59
63
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
60
|
-
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"updated_at","value":"2016-
|
61
|
-
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/
|
64
|
+
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"updated_at","value":"2016-08-10T23:47:23Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:20Z","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
|
65
|
+
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/b36a1370-4182-0134-945b-245e60c7d3c3.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/b36a1370-4182-0134-945b-245e60c7d3c3.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/b36a1370-4182-0134-945b-245e60c7d3c3.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/b36a1370-4182-0134-945b-245e60c7d3c3.ics"},{"rel":"commissioners","href":"http://localhost:3000/members/commissioners?team_id=1"},{"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_photos","href":"http://localhost:3000/member_photos/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":"message_data","href":"http://localhost:3000/message_data/search?team_id=1"},{"rel":"messages","href":"http://localhost:3000/messages/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_photos","href":"http://localhost:3000/team_photos/search"},{"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"}]}}'
|
62
66
|
http_version: '1.1'
|
63
67
|
adapter_metadata:
|
64
|
-
effective_url: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=
|
65
|
-
recorded_at:
|
68
|
+
effective_url: http://localhost:3000/teams/search?id=1&hmac_client_id=classic&hmac_nonce=6c66d094-194b-494a-a2fb-1125c5df21c8&hmac_timestamp=1470941486
|
69
|
+
recorded_at: Thu, 11 Aug 2016 18:51:26 GMT
|
66
70
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=3a3e51cf-f078-4ee1-979c-f3ec9a65e501&hmac_timestamp=1470941485
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 59944f1e1a24e90c1f7594bd455b50ef8b4bd9346f4c625b7d17afbb147ee374
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,30 +19,32 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '8756'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"724f4831c1af0892ad60c2ad2b8dedb8"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 5c7dec1d-ffe7-41a2-9dc8-f1d49937efd7
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.170428'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.306.2","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
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_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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","sort":["name"],"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
42
|
number of items to return for each page. Sending this parameter with the query
|
43
43
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
44
|
number of the page to be returned. This requires that paging be turned on
|
45
|
-
by also providing the page_size parameter."}
|
45
|
+
by also providing the page_size parameter."},{"name":"sort_name","value":null,"prompt":"Sort
|
46
|
+
the returned dataset based on the name field, valid values are ''asc'' or
|
47
|
+
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
48
|
all teams accessible to current user that have the provided sport_id and have
|
47
49
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
50
|
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
|
@@ -53,9 +55,11 @@ http_interactions:
|
|
53
55
|
(This endpoint subject to change) Allow commissioners to send invitations
|
54
56
|
to all owners on active teams in the division.","data":[{"name":"id","value":null}]},{"rel":"change_owner","href":"http://localhost:3000/teams/change_owner","prompt":"Beta:
|
55
57
|
(This endpoint subject to change) Allow commissioners to change the owner
|
56
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]}
|
58
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Beta:
|
59
|
+
(This endpoint subject to change) Search the teams on the division_id and
|
60
|
+
it''s descendants.","data":[{"name":"division_id","value":null},{"name":"is_active","value":null}]}]}}'
|
57
61
|
http_version: '1.1'
|
58
62
|
adapter_metadata:
|
59
|
-
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=
|
60
|
-
recorded_at:
|
63
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=3a3e51cf-f078-4ee1-979c-f3ec9a65e501&hmac_timestamp=1470941485
|
64
|
+
recorded_at: Thu, 11 Aug 2016 18:51:25 GMT
|
61
65
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=1c246be4-c3fd-48b6-972a-01c0a0a428e3&hmac_timestamp=1470941484
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 97cfab9a92723f93b8703ecca0ae9b3085d659962212433a989132d9d101a453
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,30 +19,32 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '8756'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"724f4831c1af0892ad60c2ad2b8dedb8"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- f30bce80-b73f-4fd6-9150-3722644bd3eb
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.055813'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.306.2","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
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_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null},{"name":"owner_first_name","value":null},{"name":"owner_last_name","value":null},{"name":"owner_email","value":null},{"name":"is_ownership_pending","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":"commissioners","href":"http://localhost:3000/members"},{"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_photos","href":"http://localhost:3000/member_photos"},{"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":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"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_photos","href":"http://localhost:3000/team_photos"},{"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","sort":["name"],"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
42
|
number of items to return for each page. Sending this parameter with the query
|
43
43
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
44
|
number of the page to be returned. This requires that paging be turned on
|
45
|
-
by also providing the page_size parameter."}
|
45
|
+
by also providing the page_size parameter."},{"name":"sort_name","value":null,"prompt":"Sort
|
46
|
+
the returned dataset based on the name field, valid values are ''asc'' or
|
47
|
+
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
46
48
|
all teams accessible to current user that have the provided sport_id and have
|
47
49
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
48
50
|
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
|
@@ -53,9 +55,11 @@ http_interactions:
|
|
53
55
|
(This endpoint subject to change) Allow commissioners to send invitations
|
54
56
|
to all owners on active teams in the division.","data":[{"name":"id","value":null}]},{"rel":"change_owner","href":"http://localhost:3000/teams/change_owner","prompt":"Beta:
|
55
57
|
(This endpoint subject to change) Allow commissioners to change the owner
|
56
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]}
|
58
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Beta:
|
59
|
+
(This endpoint subject to change) Search the teams on the division_id and
|
60
|
+
it''s descendants.","data":[{"name":"division_id","value":null},{"name":"is_active","value":null}]}]}}'
|
57
61
|
http_version: '1.1'
|
58
62
|
adapter_metadata:
|
59
|
-
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=
|
60
|
-
recorded_at:
|
63
|
+
effective_url: http://localhost:3000/teams/search?id=0&hmac_client_id=classic&hmac_nonce=1c246be4-c3fd-48b6-972a-01c0a0a428e3&hmac_timestamp=1470941484
|
64
|
+
recorded_at: Thu, 11 Aug 2016 18:51:24 GMT
|
61
65
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=87af7600-f2f0-4628-90d5-7eb830842b59&hmac_timestamp=1470941486
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 9a9ec7e942f488abbc5d871aa176225afdc9a7788c066ef467660ca48f753b21
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"8c2c173df95de409c806e789216eee4a"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 51d1e484-7b18-41ec-938c-91a03ea81080
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.078180'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.306.2","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
40
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
41
|
- updates all events in this series, \"future\" - updates this event and all
|
42
42
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -56,18 +56,18 @@ http_interactions:
|
|
56
56
|
= [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
|
57
57
|
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
|
58
58
|
= [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
|
59
|
-
#1"},{"name":"arrival_date","value":"2015-01-
|
59
|
+
#1"},{"name":"arrival_date","value":"2015-01-01T08: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-01T10:00:00Z","type":"DateTime"},{"name":"formatted_results","value":null},{"name":"game_type","value":"Not
|
60
60
|
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
|
61
|
-
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-
|
61
|
+
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-01T08:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
|
62
62
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
63
|
-
(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-
|
63
|
+
(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-08-10T23:47:21Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:22Z","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"}]}}'
|
64
64
|
http_version: '1.1'
|
65
65
|
adapter_metadata:
|
66
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
67
|
-
recorded_at:
|
66
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=87af7600-f2f0-4628-90d5-7eb830842b59&hmac_timestamp=1470941486
|
67
|
+
recorded_at: Thu, 11 Aug 2016 18:51:26 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
|
-
uri: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
70
|
+
uri: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=50464c57-bb77-4db3-b6ba-bb307a864a82&hmac_timestamp=1470941486
|
71
71
|
body:
|
72
72
|
encoding: US-ASCII
|
73
73
|
string: ''
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
User-Agent:
|
76
76
|
- Faraday v0.9.2
|
77
77
|
X-Teamsnap-Hmac:
|
78
|
-
-
|
78
|
+
- 478113d89954523a27010bc5bf3c5771eee055e9bb14038e911c579504acaca0
|
79
79
|
response:
|
80
80
|
status:
|
81
81
|
code: 200
|
@@ -88,32 +88,32 @@ http_interactions:
|
|
88
88
|
X-Content-Type-Options:
|
89
89
|
- nosniff
|
90
90
|
ETag:
|
91
|
-
- '"
|
91
|
+
- '"936c87ef222bbd36ea970662a1902c87"'
|
92
92
|
Cache-Control:
|
93
93
|
- max-age=0, private, must-revalidate
|
94
94
|
X-Request-Id:
|
95
|
-
-
|
95
|
+
- f70b4f2a-0fd2-417b-b40b-04563e45b6be
|
96
96
|
X-Runtime:
|
97
|
-
- '0.
|
97
|
+
- '0.226770'
|
98
98
|
Connection:
|
99
99
|
- keep-alive
|
100
100
|
Server:
|
101
101
|
- thin
|
102
102
|
body:
|
103
103
|
encoding: UTF-8
|
104
|
-
string: '{"collection":{"version":"3.
|
104
|
+
string: '{"collection":{"version":"3.306.2","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
|
105
105
|
number of items to return for each page. Sending this parameter with the query
|
106
106
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
107
107
|
number of the page to be returned. This requires that paging be turned on
|
108
108
|
by also providing the page_size parameter."}]}],"commands":[{"rel":"bulk_mark_unset_availabilities","href":"http://localhost:3000/availabilities/bulk_mark_unset_availabilities","prompt":"Mark
|
109
109
|
all future unset availabilities to specified status_code for the specified
|
110
110
|
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.
|
111
|
-
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-
|
112
|
-
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-
|
113
|
-
I''m not sure yet."},{"name":"status_code","value":2},{"name":"team_id","value":1},{"name":"created_at","value":"2016-
|
114
|
-
I can''t make it."},{"name":"status_code","value":0},{"name":"team_id","value":1},{"name":"created_at","value":"2016-
|
111
|
+
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-08-10T23:47:21Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:21Z","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.
|
112
|
+
I will be there."},{"name":"status_code","value":1},{"name":"team_id","value":1},{"name":"created_at","value":"2016-08-10T23:47:21Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:21Z","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.
|
113
|
+
I''m not sure yet."},{"name":"status_code","value":2},{"name":"team_id","value":1},{"name":"created_at","value":"2016-08-10T23:47:22Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:22Z","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.
|
114
|
+
I can''t make it."},{"name":"status_code","value":0},{"name":"team_id","value":1},{"name":"created_at","value":"2016-08-10T23:47:22Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:22Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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-08-11T16:47:53Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-11T16:47:53Z","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"}]}}'
|
115
115
|
http_version: '1.1'
|
116
116
|
adapter_metadata:
|
117
|
-
effective_url: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
118
|
-
recorded_at:
|
117
|
+
effective_url: http://localhost:3000/availabilities/search?event_id=1&hmac_client_id=classic&hmac_nonce=50464c57-bb77-4db3-b6ba-bb307a864a82&hmac_timestamp=1470941486
|
118
|
+
recorded_at: Thu, 11 Aug 2016 18:51:27 GMT
|
119
119
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=a213f05f-6db2-4da2-84f6-a400334df1e1&hmac_timestamp=1470941487
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- fc5f74a558a1c1fc4857b9c6f06fbf8097511ec62795a771a7af43af52d9c7ad
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -23,20 +23,20 @@ http_interactions:
|
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"8c2c173df95de409c806e789216eee4a"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 3081cffe-cfe9-49b2-8d76-7ae48efeefd7
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.057249'
|
33
33
|
Connection:
|
34
34
|
- keep-alive
|
35
35
|
Server:
|
36
36
|
- thin
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.306.2","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
40
|
updating a repeating event, this is a required field. Values are: \"all\"
|
41
41
|
- updates all events in this series, \"future\" - updates this event and all
|
42
42
|
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
@@ -56,18 +56,18 @@ http_interactions:
|
|
56
56
|
= [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
|
57
57
|
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
|
58
58
|
= [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
|
59
|
-
#1"},{"name":"arrival_date","value":"2015-01-
|
59
|
+
#1"},{"name":"arrival_date","value":"2015-01-01T08: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-01T10:00:00Z","type":"DateTime"},{"name":"formatted_results","value":null},{"name":"game_type","value":"Not
|
60
60
|
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
|
61
|
-
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-
|
61
|
+
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-01T08:00:00Z","type":"DateTime"},{"name":"team_id","value":1},{"name":"time_zone","value":"Mountain
|
62
62
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
63
|
-
(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-
|
63
|
+
(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-08-10T23:47:21Z","type":"DateTime"},{"name":"updated_at","value":"2016-08-10T23:47:22Z","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"}]}}'
|
64
64
|
http_version: '1.1'
|
65
65
|
adapter_metadata:
|
66
|
-
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=
|
67
|
-
recorded_at:
|
66
|
+
effective_url: http://localhost:3000/events/search?id=1&hmac_client_id=classic&hmac_nonce=a213f05f-6db2-4da2-84f6-a400334df1e1&hmac_timestamp=1470941487
|
67
|
+
recorded_at: Thu, 11 Aug 2016 18:51:27 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
|
-
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
70
|
+
uri: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=eeb04607-79dd-4f89-9317-72c9446e15db&hmac_timestamp=1470941487
|
71
71
|
body:
|
72
72
|
encoding: US-ASCII
|
73
73
|
string: ''
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
User-Agent:
|
76
76
|
- Faraday v0.9.2
|
77
77
|
X-Teamsnap-Hmac:
|
78
|
-
-
|
78
|
+
- a1423c64d23d42953af78100dbc1ca72c44765fb93f31c82f667f1f45ee6a25d
|
79
79
|
response:
|
80
80
|
status:
|
81
81
|
code: 200
|
@@ -84,30 +84,35 @@ http_interactions:
|
|
84
84
|
Content-Type:
|
85
85
|
- application/vnd.collection+json
|
86
86
|
Content-Length:
|
87
|
-
- '
|
87
|
+
- '1862'
|
88
88
|
X-Content-Type-Options:
|
89
89
|
- nosniff
|
90
90
|
ETag:
|
91
|
-
- '"
|
91
|
+
- '"144e40c2e1dcb0df39698601acb7c6f7"'
|
92
92
|
Cache-Control:
|
93
93
|
- max-age=0, private, must-revalidate
|
94
94
|
X-Request-Id:
|
95
|
-
-
|
95
|
+
- 36d31dec-b0b8-46c5-812d-60dc3f4ee54c
|
96
96
|
X-Runtime:
|
97
|
-
- '0.
|
97
|
+
- '0.036966'
|
98
98
|
Connection:
|
99
99
|
- keep-alive
|
100
100
|
Server:
|
101
101
|
- thin
|
102
102
|
body:
|
103
103
|
encoding: UTF-8
|
104
|
-
string: '{"collection":{"version":"3.
|
104
|
+
string: '{"collection":{"version":"3.306.2","href":"http://localhost:3000/assignments","rel":"assignments","template":{"data":[{"name":"description","value":null},{"name":"event_id","value":null},{"name":"member_id","value":null,"deprecated":true,"prompt":"member_id
|
105
|
+
is deprecated and has been removed. Continued use of member_id is not recommended
|
106
|
+
it will no longer be stored."},{"name":"type","value":"assignment"}]},"links":[{"rel":"event","href":"http://localhost:3000/events"},{"rel":"member","href":"http://localhost:3000/members"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/assignments/search?event_id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/assignments/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
|
105
107
|
number of items to return for each page. Sending this parameter with the query
|
106
108
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
107
109
|
number of the page to be returned. This requires that paging be turned on
|
108
|
-
by also providing the page_size parameter."}]}]
|
110
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"send_assignment_emails","href":"http://localhost:3000/assignments/send_assignment_emails","prompt":"BETA:
|
111
|
+
(This endpoint subject to change) Notifies all members on the team via email
|
112
|
+
regarding upcoming event assignments.","data":[{"name":"event_ids","value":null,"prompt":"A
|
113
|
+
comma delimited list of event ids."},{"name":"message","value":null},{"name":"sending_member_id","value":null},{"name":"team_id","value":null}]}]}}'
|
109
114
|
http_version: '1.1'
|
110
115
|
adapter_metadata:
|
111
|
-
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=
|
112
|
-
recorded_at:
|
116
|
+
effective_url: http://localhost:3000/assignments/search?event_id=1&hmac_client_id=classic&hmac_nonce=eeb04607-79dd-4f89-9317-72c9446e15db&hmac_timestamp=1470941487
|
117
|
+
recorded_at: Thu, 11 Aug 2016 18:51:27 GMT
|
113
118
|
recorded_with: VCR 2.9.3
|