teamsnap_rb 2.4.0 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/stale.yml +16 -0
- data/.github/workflows/ci.yml +25 -0
- data/.gitignore +1 -1
- data/.teamsnap/service.yml +18 -0
- data/CHANGELOG.md +12 -0
- data/CODEOWNERS +1 -0
- data/Gemfile +0 -2
- data/README.md +4 -6
- data/Rakefile +0 -5
- data/lib/teamsnap/api.rb +2 -1
- data/lib/teamsnap/auth_middleware.rb +2 -0
- data/lib/teamsnap/response.rb +7 -1
- data/lib/teamsnap/structure.rb +1 -1
- data/lib/teamsnap/version.rb +1 -1
- data/lib/teamsnap.rb +5 -1
- data/spec/cassettes/apiv3-init.yml +850 -236
- data/spec/cassettes/teamsnap__api/_run/when_creating/when_successful/can_parse_the_json.yml +73 -0
- data/spec/cassettes/teamsnap__api/_run/when_deleting/when_successful/handles_empty_response_body.yml +38 -0
- data/spec/cassettes/teamsnap__client/_api/Sends_the_proper_information_to_TeamSnap_Api_run.yml +87 -0
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/does_not_raise_an_error_when_the_HTTP_actions_are_called.yml +24 -17
- data/spec/cassettes/teamsnap__client/when_calling_via_s_on_the_client/passes_them_to_the_faraday_client_using_method_missing.yml +24 -17
- data/spec/cassettes/teamsnap__client/when_specifying_a_headers_flag/correctly_sets_the_ghost_header_flag.yml +846 -232
- data/spec/cassettes/teamsnap__client/when_specifying_a_headers_flag/won_t_set_feature_headers_without_the_header_variable_present.yml +847 -232
- data/spec/cassettes/teamsnap__collection/_items/returns_all_items_for_a_base_collection.yml +68 -63
- data/spec/cassettes/teamsnap__collection/adds_find_if_search_is_available.yml +44 -27
- data/spec/cassettes/teamsnap__collection/adds_href_to_items.yml +132 -33
- data/spec/cassettes/teamsnap__collection/can_follow_plural_links.yml +421 -136
- data/spec/cassettes/teamsnap__collection/can_follow_singular_links.yml +175 -59
- data/spec/cassettes/teamsnap__collection/can_handle_links_with_no_data.yml +155 -53
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands.yml +132 -33
- data/spec/cassettes/teamsnap__collection/handles_executing_an_action_via_commands_with_multiple_params.yml +75 -35
- data/spec/cassettes/teamsnap__collection/handles_fetching_data_via_queries.yml +44 -27
- data/spec/cassettes/teamsnap__collection/handles_queries_with_no_data.yml +36 -22
- data/spec/cassettes/teamsnap__collection/raises_an_exception_if_find_returns_nothing.yml +36 -22
- 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 +63 -51
- 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 +57 -47
- 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 +49 -42
- data/spec/cassettes/teamsnap__collection/supports_relations_with_expected_behaviors/when_a_singular_relation_is_called/responds_with_the_object_if_it_exists.yml +77 -53
- data/spec/cassettes/teamsnap__structure/_create_collection_class/registers_new_classes_via_introspection_of_the_root_collection.yml +36 -22
- data/spec/cassettes/teamsnap__structure/_create_collection_class/sets_the_href_attribute_on_the_new_class.yml +36 -22
- data/spec/cassettes/teamsnap__structure/_init/has_all_classes_in_schema_loaded_except_for_exceptions_list_endpoints.yml +24 -17
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_empty_bulk_load.yml +16 -16
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_handle_an_error_with_bulk_load_without_a_team_id.yml +14 -14
- data/spec/cassettes/teamsnap_rb/_bulk_load/can_use_bulk_load.yml +291 -103
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/accepts_test_file_arg_when_creating_HMAC.yml +82 -2653
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_DELETE_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_GET_on_the_given_client.yml +24 -17
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_PATCH_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_client_send/when_sent_a_known_via_/calls_POST_on_the_given_client.yml +67 -2639
- data/spec/cassettes/teamsnap_rb/_run/processes_the_response.yml +93 -65
- data/spec/cassettes/uploading_files/uploads_a_file.yml +130 -31
- data/spec/cassettes/uploading_files/uploads_a_tempfile.yml +130 -31
- data/spec/features/uploading_files_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -13
- data/spec/teamsnap/apiv_spec.rb +49 -1
- data/spec/teamsnap/client_spec.rb +4 -4
- data/spec/teamsnap/collection_spec.rb +5 -5
- data/spec/teamsnap/item_spec.rb +1 -1
- data/spec/teamsnap/structure_spec.rb +2 -2
- data/spec/teamsnap_spec.rb +4 -4
- data/teamsnap_rb.gemspec +5 -5
- metadata +35 -20
- data/.travis.yml +0 -10
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/events?hmac_client_id=classic_service&hmac_nonce=5ad11df1-9676-4260-a1fe-30853fa68c72&hmac_timestamp=1590183491
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"template":{"data":[{"name":"start_date","value":"2020-12-31"},{"name":"team_id","value":1},{"name":"location_id","value":1},{"name":"name","value":"Practice"}]}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.17.3
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- 13e983362c666d5e2c7beb7d2f995414895501135563257a1a6987d6c0a3ac5a
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/vnd.collection+json
|
23
|
+
Location:
|
24
|
+
- "/events/search?id=207"
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
ETag:
|
28
|
+
- W/"5bb89432ec2af8cec89713778503a2d1"
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- d2d7a257-3829-4dff-bea8-7c018b23646d
|
33
|
+
X-Runtime:
|
34
|
+
- '1.111746'
|
35
|
+
Vary:
|
36
|
+
- Origin
|
37
|
+
Content-Length:
|
38
|
+
- '9714'
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"collection":{"version":"3.854.0","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
|
42
|
+
updating a repeating event, this is a required field. Values are: \"all\"
|
43
|
+
- updates all events in this series, \"future\" - updates this event and all
|
44
|
+
that occur after, \"none\" - only updates a single event."},{"name":"repeating_type_code","value":null,"prompt":"A
|
45
|
+
code for the frequency of the repeated event, this is required with the \"repeating_include\"
|
46
|
+
attribute when creating a repeating event. Valid values are: \"1\" - repeat
|
47
|
+
an event daily, \"2\" - repeat an event weekly."},{"name":"repeating_until","value":null,"prompt":"A
|
48
|
+
date when the repeating event should end, this is inclusive so an event will
|
49
|
+
be created on this day if it falls before the next event specified by \"repeating_type_code\".
|
50
|
+
This attribute is required with \"repeating_type_code\" when creating a repeating
|
51
|
+
event."},{"name":"results","value":null},{"name":"results_url","value":null},{"name":"shootout_points_for_opponent","value":null},{"name":"shootout_points_for_team","value":null},{"name":"start_date","value":null},{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"tracks_availability","value":null},{"name":"uniform","value":null}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"division_location","href":"http://localhost:3000/division_locations"},{"rel":"event_lineups","href":"http://localhost:3000/event_lineups"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"location","href":"http://localhost:3000/locations"},{"rel":"opponent","href":"http://localhost:3000/opponents"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"suggested_assignments","href":"http://localhost:3000/suggested_assignments"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/events"}],"queries":[{"rel":"search","sort":["start_date"],"href":"http://localhost:3000/events/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"location_id","value":null},{"name":"opponent_id","value":null},{"name":"started_after","value":null},{"name":"started_before","value":null},{"name":"repeating_uuid","value":null},{"name":"id","value":null},{"name":"is_game","value":null},{"name":"updated_since","value":null},{"name":"page_size","value":null,"prompt":"The
|
52
|
+
number of items to return for each page. Sending this parameter with the query
|
53
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
54
|
+
number of the page to be returned. This requires that paging be turned on
|
55
|
+
by also providing the page_size parameter."},{"name":"sort_start_date","value":null,"prompt":"Sort
|
56
|
+
the returned dataset based on the start_date field, valid values are ''asc''
|
57
|
+
or ''desc''."}]},{"rel":"search_games","href":"http://localhost:3000/events/search_games","data":[{"name":"team_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
58
|
+
number of items to return for each page. Sending this parameter with the query
|
59
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
60
|
+
number of the page to be returned. This requires that paging be turned on
|
61
|
+
by also providing the page_size parameter."}]},{"rel":"overview","href":"http://localhost:3000/events/overview","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_availability_reminders","href":"http://localhost:3000/events/send_availability_reminders","prompt":"members_to_notify
|
62
|
+
= [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
|
63
|
+
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
|
64
|
+
= [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/207","data":[{"name":"id","value":207,"type":"String"},{"name":"type","value":"event","type":"String"},{"name":"additional_location_details","value":null,"type":"String"},{"name":"arrival_date","value":"2020-12-31T00:00:00Z","type":"DateTime"},{"name":"division_location_id","value":null,"type":"String"},{"name":"doesnt_count_towards_record","value":false,"type":"Boolean"},{"name":"duration_in_minutes","value":0,"type":"Integer"},{"name":"end_date","value":null,"type":"DateTime"},{"name":"formatted_results","value":null,"type":"String"},{"name":"game_type","value":"Not
|
65
|
+
Specified","type":"String"},{"name":"game_type_code","value":0,"type":"Integer"},{"name":"icon_color","value":"blue","type":"String"},{"name":"is_canceled","value":false,"type":"Boolean"},{"name":"is_game","value":false,"type":"Boolean"},{"name":"is_overtime","value":false,"type":"Boolean"},{"name":"is_shootout","value":false,"type":"Boolean"},{"name":"is_tbd","value":false,"type":"Boolean"},{"name":"label","value":null,"type":"String"},{"name":"location_id","value":1,"type":"String"},{"name":"minutes_to_arrive_early","value":0,"type":"Integer"},{"name":"name","value":"Practice","type":"String"},{"name":"notes","value":null,"type":"String"},{"name":"opponent_id","value":null,"type":"String"},{"name":"points_for_opponent","value":null,"type":"Integer"},{"name":"points_for_team","value":null,"type":"Integer"},{"name":"repeating_type","value":null,"type":"String"},{"name":"repeating_type_code","value":null,"type":"Integer"},{"name":"repeating_uuid","value":null,"type":"String"},{"name":"results","value":null,"type":"String"},{"name":"results_url","value":null,"type":"String"},{"name":"shootout_points_for_opponent","value":null,"type":"Integer"},{"name":"shootout_points_for_team","value":null,"type":"Integer"},{"name":"start_date","value":"2020-12-31T00:00:00Z","type":"DateTime"},{"name":"team_id","value":1,"type":"String"},{"name":"time_zone","value":"Mountain
|
66
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_description","value":"Mountain
|
67
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"time_zone_offset","value":"-07:00","type":"String"},{"name":"source_time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"tracks_availability","value":true,"type":"Boolean"},{"name":"uniform","value":null,"type":"String"},{"name":"is_league_controlled","value":false,"type":"Boolean"},{"name":"opponent_name","value":null,"type":"String"},{"name":"location_name","value":"BoulderHQ","type":"String"},{"name":"formatted_title","value":"Practice","type":"String"},{"name":"formatted_title_for_multi_team","value":"Base
|
68
|
+
Team Practice","type":"String"},{"name":"created_at","value":"2020-05-22T21:38:12Z","type":"DateTime"},{"name":"updated_at","value":"2020-05-22T21:38:12Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?event_id=207"},{"rel":"assignments_team","href":"http://localhost:3000/assignments/search?event_id=207&team_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?event_id=207"},{"rel":"calendar_single_event","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/event/207.ics"},{"rel":"division_location","href":"http://localhost:3000/division_locations/"},{"rel":"event_lineups","href":"http://localhost:3000/event_lineups/search?event_id=207"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics/search?event_id=207"},{"rel":"location","href":"http://localhost:3000/locations/1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?event_id=207"},{"rel":"suggested_assignments","href":"http://localhost:3000/suggested_assignments/search?team_id=1"},{"rel":"team","href":"http://localhost:3000/teams/1"}],"rel":"event-207"}]}}'
|
69
|
+
http_version: '1.1'
|
70
|
+
adapter_metadata:
|
71
|
+
effective_url: http://localhost:3000/events?hmac_client_id=classic_service&hmac_nonce=5ad11df1-9676-4260-a1fe-30853fa68c72&hmac_timestamp=1590183491
|
72
|
+
recorded_at: Fri, 22 May 2020 21:38:12 GMT
|
73
|
+
recorded_with: VCR 5.1.0
|
data/spec/cassettes/teamsnap__api/_run/when_deleting/when_successful/handles_empty_response_body.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://localhost:3000/events/1?hmac_client_id=classic_service&hmac_nonce=14ee5c28-a842-42cf-ba64-d78eae6520a1&hmac_timestamp=1590184028
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.17.3
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- 8acb66cbbc4e67e4380db69153ed51488feadb809bc37b9d7db6639395602415
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 204
|
19
|
+
message: No Content
|
20
|
+
headers:
|
21
|
+
X-Content-Type-Options:
|
22
|
+
- nosniff
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
X-Request-Id:
|
26
|
+
- bd0bca11-8fac-481b-9d4b-94915bad6165
|
27
|
+
X-Runtime:
|
28
|
+
- '1.039819'
|
29
|
+
Vary:
|
30
|
+
- Origin
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: ''
|
34
|
+
http_version: '1.1'
|
35
|
+
adapter_metadata:
|
36
|
+
effective_url: http://localhost:3000/events/1?hmac_client_id=classic_service&hmac_nonce=14ee5c28-a842-42cf-ba64-d78eae6520a1&hmac_timestamp=1590184028
|
37
|
+
recorded_at: Fri, 22 May 2020 21:47:09 GMT
|
38
|
+
recorded_with: VCR 5.1.0
|
data/spec/cassettes/teamsnap__client/_api/Sends_the_proper_information_to_TeamSnap_Api_run.yml
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/teams/1?hmac_client_id=classic_service&hmac_nonce=f55ced43-4e0e-4816-8530-cb81ae084946&hmac_timestamp=1590177518
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.17.3
|
12
|
+
X-Teamsnap-Hmac:
|
13
|
+
- 78d41827334404cbf0b42ebdc70b039bafe01abbb8a07781ad0790a489aa0f09
|
14
|
+
Expect:
|
15
|
+
- ''
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/vnd.collection+json
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
ETag:
|
26
|
+
- W/"8d6c517daf23330b9a706da3f1389faf"
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 76f954a4-9a4c-473b-95a9-526e34eb9a88
|
31
|
+
X-Runtime:
|
32
|
+
- '0.565631'
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
Content-Length:
|
36
|
+
- '23094'
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/teams","rel":"teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null,"prompt":"The
|
40
|
+
time_zone parameter is required when creating a team, but for changing a team''s
|
41
|
+
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_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":"advertisements","href":"http://localhost:3000/advertisements"},{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"batch_invoices","href":"http://localhost:3000/batch_invoices"},{"rel":"batch_invoices_aggregates","href":"http://localhost:3000/batch_invoices_aggregates"},{"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":"sport_positions","href":"http://localhost:3000/sport_positions"},{"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":"team_stores","href":"http://localhost:3000/team_stores"},{"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/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
|
+
number of items to return for each page. Sending this parameter with the query
|
43
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
44
|
+
number of the page to be returned. This requires that paging be turned on
|
45
|
+
by also providing the page_size parameter."},{"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
|
48
|
+
all teams accessible to current user that have the provided sport_id and have
|
49
|
+
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
50
|
+
all active teams for a given user. Excludes archived seasons and retired teams.","data":[{"name":"user_id","value":null},{"name":"division_id","value":null}]},{"rel":"division_search","href":"http://localhost:3000/teams/division_search","prompt":"Search
|
51
|
+
the teams on the division_id and its descendants or a commissioner''s user_id.","data":[{"name":"division_id","value":null},{"name":"user_id","value":null},{"name":"is_active","value":null},{"name":"is_commissioner","value":null},{"name":"page_size","value":null,"prompt":"The
|
52
|
+
number of items to return for each page. Sending this parameter with the query
|
53
|
+
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
54
|
+
number of the page to be returned. This requires that paging be turned on
|
55
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
56
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]},{"rel":"update_time_zone","href":"http://localhost:3000/teams/update_time_zone","prompt":"Update
|
57
|
+
team''s time zone. This is currently the only method of updating a team''s
|
58
|
+
time zone.","data":[{"name":"team_id","value":null},{"name":"time_zone","value":null},{"name":"offset_team_times","value":null,"deprecated":true,"prompt":"%{old}
|
59
|
+
is deprecated and will be removed in a future version, use %{new} instead."}]},{"rel":"reset_statistics","href":"http://localhost:3000/teams/reset_statistics","prompt":"Deletes
|
60
|
+
all data, categories and groups for a given team_id","data":[{"name":"team_id","value":null}]},{"rel":"invite_team_owners","href":"http://localhost:3000/teams/invite_team_owners","prompt":"Beta:
|
61
|
+
(This endpoint subject to change) Allow commissioners to send invitations
|
62
|
+
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:
|
63
|
+
(This endpoint subject to change) Allow commissioners to change the owner
|
64
|
+
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]},{"rel":"toggle_team_visibility_on_dashboard","href":"http://localhost:3000/teams/toggle_team_visibility_on_dashboard","prompt":"Toggles
|
65
|
+
the visibility of teams on the list of active teams, per user. Requires a
|
66
|
+
single id or a comma separated list of ''team_id''s","data":[{"name":"team_ids","value":null}]},{"rel":"send_upsell_message_from_owner","href":"http://localhost:3000/teams/send_upsell_message_from_owner","prompt":"Send
|
67
|
+
an upsell email to the team owner.","data":[{"name":"team_id","value":null},{"name":"feature","value":null}]},{"rel":"send_upsell_message_from_contact","href":"http://localhost:3000/teams/send_upsell_message_from_contact","prompt":"Send
|
68
|
+
an upsell email to the team owner from a contact.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"feature","value":null}]},{"rel":"update_team_plan","href":"http://localhost:3000/teams/update_team_plan","prompt":"Update
|
69
|
+
team''s plan. Requires a single id or a comma separated list of ''team_id''s
|
70
|
+
and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"plan_id","value":null}]},{"rel":"apply_promotion","href":"http://localhost:3000/teams/apply_promotion","prompt":"Apply
|
71
|
+
a promotion to a team. Requires a single id or a comma separated list of ''team_id''s,
|
72
|
+
promotion_name, promotion_length and a plan_id.","data":[{"name":"team_ids","value":null},{"name":"promotion_name","value":null},{"name":"promotion_length","value":null},{"name":"plan_id","value":null}]},{"rel":"enable_fundraising","href":"http://localhost:3000/teams/enable_fundraising","prompt":"Enable
|
73
|
+
fundraising for a team. Requires a single team_id and goal_cents as the fundraising
|
74
|
+
goal.","data":[{"name":"team_id","value":null},{"name":"goal_cents","value":null}]}],"items":[{"href":"http://localhost:3000/teams/1","data":[{"name":"id","value":1,"type":"String"},{"name":"type","value":"team","type":"String"},{"name":"active_season_team_id","value":null,"type":"String"},{"name":"division_name","value":null,"type":"String"},{"name":"division_id","value":null,"type":"String"},{"name":"division_root_id","value":null,"type":"Integer"},{"name":"is_archived_season","value":false,"type":"Boolean"},{"name":"is_hidden_on_dashboard","value":false,"type":"Boolean"},{"name":"is_retired","value":false,"type":"Boolean"},{"name":"league_name","value":null,"type":"String"},{"name":"league_url","value":null,"type":"String"},{"name":"is_in_league","value":false,"type":"Boolean"},{"name":"location_country","value":"United
|
75
|
+
States","type":"String"},{"name":"location_postal_code","value":"80951","type":"String"},{"name":"location_latitude","value":null,"type":"String"},{"name":"location_longitude","value":null,"type":"String"},{"name":"location_state","value":null,"type":"String"},{"name":"name","value":"Base
|
76
|
+
Team","type":"String"},{"name":"non_player_member_count","value":1,"type":"Integer"},{"name":"plan_id","value":14,"type":"String"},{"name":"player_member_count","value":12,"type":"Integer"},{"name":"billed_at","value":"2020-05-22T00:00:00Z","type":"DateTime"},{"name":"season_name","value":null,"type":"String"},{"name":"sport_id","value":1,"type":"String"},{"name":"time_zone","value":"Mountain
|
77
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_description","value":"Mountain
|
78
|
+
Time (US & Canada)","type":"String"},{"name":"time_zone_iana_name","value":"America/Denver","type":"String"},{"name":"time_zone_offset","value":"-07:00","type":"String"},{"name":"active_payment_provider","value":"offline","type":"String"},{"name":"default_payment_provider","value":"stripe","type":"String"},{"name":"updated_at","value":"2020-05-22T19:56:15Z","type":"DateTime"},{"name":"created_at","value":"2020-05-22T19:56:05Z","type":"DateTime"},{"name":"has_reached_roster_limit","value":false,"type":"Boolean","deprecated":true,"prompt":"has_reached_roster_limit
|
79
|
+
is deprecated and will be removed in a future version, use has_reached_member_limit
|
80
|
+
instead."},{"name":"has_reached_member_limit","value":false,"type":"Boolean"},{"name":"roster_limit","value":15,"type":"Boolean","deprecated":true,"prompt":"roster_limit
|
81
|
+
is deprecated and will be removed in a future version, use member_limit instead."},{"name":"member_limit","value":15,"type":"Integer"},{"name":"has_exportable_media","value":false,"type":"Boolean"},{"name":"can_export_media","value":false,"type":"Boolean"},{"name":"last_accessed_at","value":null,"type":"DateTime"},{"name":"media_storage_used","value":0,"type":"Integer"},{"name":"humanized_media_storage_used","value":"0
|
82
|
+
B","type":"String"},{"name":"is_game_day","value":false,"type":"Boolean"},{"name":"is_gateway_required_for_sms","value":false,"type":"Boolean"},{"name":"has_plaay_video","value":false,"type":"Boolean"}],"links":[{"rel":"advertisements","href":"http://localhost:3000/advertisements/search?team_id=1"},{"rel":"assignments","href":"http://localhost:3000/assignments/search?team_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?team_id=1"},{"rel":"availabilities_csv_export","href":"http://localhost:3000/exports/availabilities_csv?hs=YszGJFFtdkxT%252Ba08BS5xyp1dHMOjVVvQPmlGdCebDpafs9qC6iM2Wgap55%252FDtoxV"},{"rel":"batch_invoices","href":"http://localhost:3000/batch_invoices/search?team_id=1"},{"rel":"batch_invoices_aggregates","href":"http://localhost:3000/batch_invoices_aggregates/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/32322520-7e94-0138-2c42-095d1336e8e6.ics"},{"rel":"calendar_http_games_only","href":"http://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/32322520-7e94-0138-2c42-095d1336e8e6.ics"},{"rel":"calendar_webcal","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/32322520-7e94-0138-2c42-095d1336e8e6.ics"},{"rel":"calendar_webcal_games_only","href":"webcal://86ed2e8eefaaee16c4b7-16391cffaf9272bff70e93998d553c16.r2.cf1.rackcdn.com/team_schedule/filter/games/32322520-7e94-0138-2c42-095d1336e8e6.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":"invoices_aggregates","href":"http://localhost:3000/invoices_aggregates/search?team_id=1"},{"rel":"invoice_recipients_invoices_aggregates","href":"http://localhost:3000/invoice_recipients_invoices_aggregates/search?team_id=1"},{"rel":"granted_wepay_account","href":"http://localhost:3000/wepay_accounts/search?is_granted=true&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":"messaging_permissions","href":"http://localhost:3000/messaging_permissions?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":"partners_preferences_flip_give","href":"http://localhost:3000/partners_preferences/search?partner_id=36&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":"sport_positions","href":"http://localhost:3000/sport_positions/search?sport_id=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":"stripe_accounts","href":"http://localhost:3000/stripe_accounts/search?team_id=1"},{"rel":"team_fees","href":"http://localhost:3000/team_fees/search?team_id=1"},{"rel":"team_logo_photo_file","href":"http://localhost:3000/photo_files/sport_logo/1-1590177362"},{"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":"team_stores","href":"http://localhost:3000/team_stores/search?team_id=1"},{"rel":"team_store","href":"https://team-store.pod-hashrocket.teamsnap.com/teams/1/store"},{"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_chat","href":"https://live-dev-1-1.firebaseio.com"},{"rel":"wepay_accounts","href":"http://localhost:3000/wepay_accounts/search?team_id=1"}],"rel":"team-1"}]}}'
|
83
|
+
http_version: '1.1'
|
84
|
+
adapter_metadata:
|
85
|
+
effective_url: http://localhost:3000/teams/1?hmac_client_id=classic_service&hmac_nonce=f55ced43-4e0e-4816-8530-cb81ae084946&hmac_timestamp=1590177518
|
86
|
+
recorded_at: Fri, 22 May 2020 19:58:38 GMT
|
87
|
+
recorded_with: VCR 5.1.0
|
@@ -2,15 +2,17 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://localhost:3000/?hmac_client_id=
|
5
|
+
uri: http://localhost:3000/?hmac_client_id=classic_service&hmac_nonce=ec2df192-432a-4d54-a954-c56f129ce1c6&hmac_timestamp=1590177517
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- df5231e6f9ec1cbb85a92b6d0b12b0b0cba7a50c60a1ced0fa33e27a58a46115
|
14
|
+
Expect:
|
15
|
+
- ''
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
@@ -18,25 +20,30 @@ http_interactions:
|
|
18
20
|
headers:
|
19
21
|
Content-Type:
|
20
22
|
- application/vnd.collection+json
|
21
|
-
Content-Length:
|
22
|
-
- '10278'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
-
|
26
|
+
- W/"0b2c3177c63fab206e8d8fcf7b62d01d"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 611678e4-0e33-4c9e-ad28-0a60faa15322
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
32
|
+
- '0.384092'
|
33
|
+
Vary:
|
34
|
+
- Origin
|
35
|
+
Content-Length:
|
36
|
+
- '17540'
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
|
-
string: '{"collection":{"version":"3.
|
39
|
+
string: '{"collection":{"version":"3.854.0","href":"http://localhost:3000/","rel":"root","links":[{"rel":"advertisements","href":"http://localhost:3000/advertisements"},{"rel":"apiv2_root","href":"http://localhost:3003"},{"rel":"authorization","href":"http://localhost:3004","prompt":"authorization
|
40
|
+
is deprecated and will be removed in a future version, use authorization_root
|
41
|
+
instead."},{"rel":"authorization_root","href":"http://localhost:3004"},{"rel":"authorization_magic_links","href":"http://localhost:3004/magic_links"},{"rel":"authorization_password_resets","href":"http://localhost:3004/password_resets"},{"rel":"authorization_tokens","href":"http://localhost:3004/oauth/token"},{"rel":"authorization_user_registrations","href":"http://localhost:3004/user_registrations"},{"rel":"authorization_user_registration_initializations","href":"http://localhost:3004/user_registration_initializations"},{"rel":"authorization_users","href":"http://localhost:3004/users"},{"rel":"android_subscriptions","href":"http://localhost:3000/android_subscriptions"},{"rel":"apple_paid_features","href":"http://localhost:3000/apple_paid_features"},{"rel":"apn_devices","href":"http://localhost:3000/apn_devices"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"availability_summaries","href":"http://localhost:3000/availability_summaries"},{"rel":"batch_invoices","href":"http://localhost:3000/batch_invoices"},{"rel":"batch_invoices_aggregates","href":"http://localhost:3000/batch_invoices_aggregates"},{"rel":"batch_invoice_line_items","href":"http://localhost:3000/batch_invoice_line_items"},{"rel":"batch_invoice_payment_schedules","href":"http://localhost:3000/batch_invoice_payment_schedules"},{"rel":"batch_invoice_payment_schedule_details","href":"http://localhost:3000/batch_invoice_payment_schedule_details"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"countries","href":"http://localhost:3000/countries"},{"rel":"currencies","href":"http://localhost:3000/currencies"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"divisions","href":"http://localhost:3000/divisions"},{"rel":"division_aggregates","href":"http://localhost:3000/division_aggregates"},{"rel":"division_behaviors","href":"http://localhost:3000/division_behaviors"},{"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_events","href":"http://localhost:3000/division_events"},{"rel":"division_structure_health_data","href":"http://localhost:3000/division_structure_health_data"},{"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_rate_packages","href":"http://localhost:3000/division_rate_packages"},{"rel":"division_events_imports","href":"http://localhost:3000/division_events_imports"},{"rel":"division_stores","href":"http://localhost:3000/division_stores"},{"rel":"division_regsaver_options","href":"http://localhost:3000/division_regsaver_options"},{"rel":"division_team_standings","href":"http://localhost:3000/division_team_standings"},{"rel":"divisions_preferences","href":"http://localhost:3000/divisions_preferences"},{"rel":"event_statistics","href":"http://localhost:3000/event_statistics"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"event_lineups","href":"http://localhost:3000/event_lineups"},{"rel":"event_lineup_entries","href":"http://localhost:3000/event_lineup_entries"},{"rel":"facebook_pages","href":"http://localhost:3000/facebook_pages","prompt":"%{old}
|
42
|
+
is deprecated and will be removed in a future version, use %{new} instead."},{"rel":"forecasts","href":"http://localhost:3000/forecasts"},{"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":"fundraising_campaigns","href":"http://localhost:3000/fundraising_campaigns"},{"rel":"geocoded_locations","href":"http://localhost:3000/geocoded_locations"},{"rel":"gcm_devices","href":"http://localhost:3000/gcm_devices"},{"rel":"card_feed","href":"http://host.docker.internal:4008/cards"},{"rel":"invitations","href":"http://localhost:3000/invitations"},{"rel":"invoices","href":"http://localhost:3000/invoices"},{"rel":"invoice_line_items","href":"http://localhost:3000/invoice_line_items"},{"rel":"invoice_messages","href":"http://localhost:3000/invoice_messages"},{"rel":"invoice_payment_options_amounts","href":"http://localhost:3000/invoice_payment_options_amounts"},{"rel":"invoice_schedule_payment_options_amounts","href":"http://localhost:3000/invoice_schedule_payment_options_amounts"},{"rel":"invoice_schedule_payments_payment_options_amounts","href":"http://localhost:3000/invoice_schedule_payments_payment_options_amounts"},{"rel":"invoice_payments","href":"http://localhost:3000/invoice_payments"},{"rel":"invoice_payment_schedules","href":"http://localhost:3000/invoice_payment_schedules"},{"rel":"invoice_payment_transactions","href":"http://localhost:3000/invoice_payment_transactions"},{"rel":"invoice_recipients","href":"http://localhost:3000/invoice_recipients"},{"rel":"invoice_recipients_invoices_aggregates","href":"http://localhost:3000/invoice_recipients_invoices_aggregates"},{"rel":"invoicing_health_data","href":"http://localhost:3000/invoicing_health_data"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses","prompt":"member_email_addresses
|
43
|
+
is deprecated and will be removed in a future version, use contact_email_addresses
|
44
|
+
instead."},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"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","prompt":"member_phone_numbers
|
45
|
+
is deprecated and will be removed in a future version, use contact_phone_numbers
|
46
|
+
instead."},{"rel":"member_photos","href":"http://localhost:3000/member_photos"},{"rel":"member_registration_signups","href":"http://localhost:3000/member_registration_signups"},{"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":"message_reply_statuses","href":"http://localhost:3000/message_reply_statuses"},{"rel":"mobile_advertising_identities","href":"http://localhost:3000/mobile_advertising_identities"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"partners_user_preferences","href":"http://localhost:3000/partners_user_preferences"},{"rel":"partners_preferences","href":"http://localhost:3000/partners_preferences"},{"rel":"pay_invoice_details","href":"http://localhost:3000/pay_invoice_details"},{"rel":"payment_method_wepay_credit_cards","href":"http://localhost:3000/payment_method_wepay_credit_cards"},{"rel":"payment_notes","href":"http://localhost:3000/payment_notes"},{"rel":"payment_options","href":"http://localhost:3000/payment_options"},{"rel":"payment_providers","href":"http://localhost:3000/payment_providers"},{"rel":"paypal_currencies","href":"http://localhost:3000/paypal_currencies"},{"rel":"plans","href":"http://localhost:3000/plans"},{"rel":"plans_all","href":"http://localhost:3000/plans/all"},{"rel":"program_members","href":"http://localhost:3000/program_members"},{"rel":"program_memberships","href":"http://localhost:3000/program_memberships"},{"rel":"promotion_exclusions","href":"http://localhost:3000/promotion_exclusions"},{"rel":"public_features","href":"http://localhost:3000/public_features"},{"rel":"registration_signups","href":"http://localhost:3000/registration_signups"},{"rel":"registration_signup_statuses","href":"http://localhost:3000/registration_signup_statuses"},{"rel":"registration_forms","href":"http://localhost:3000/registration_forms"},{"rel":"registration_form_line_items","href":"http://localhost:3000/registration_form_line_items"},{"rel":"registration_form_line_item_options","href":"http://localhost:3000/registration_form_line_item_options"},{"rel":"registration_health_data","href":"http://localhost:3000/registration_health_data"},{"rel":"registration_dates_aggregates","href":"http://localhost:3000/registration_dates_aggregates"},{"rel":"reigning_champs","href":"http://localhost:3000/reigning_champs"},{"rel":"schemas","href":"http://localhost:3000/schemas"},{"rel":"sms_gateways","href":"http://localhost:3000/sms_gateways"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sports","href":"http://localhost:3000/sports"},{"rel":"sport_positions","href":"http://localhost:3000/sport_positions"},{"rel":"statistics","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_groups","href":"http://localhost:3000/statistic_groups"},{"rel":"stripe_accounts","href":"http://localhost:3000/stripe_accounts"},{"rel":"stripe_account_access_grants","href":"http://localhost:3000/stripe_account_access_grants"},{"rel":"suggested_assignments","href":"http://localhost:3000/suggested_assignments"},{"rel":"team_chat_users","href":"http://localhost:3000/team_chat_users"},{"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_names","href":"http://localhost:3000/team_names"},{"rel":"team_photos","href":"http://localhost:3000/team_photos"},{"rel":"team_public_sites","href":"http://localhost:3000/team_public_sites"},{"rel":"teams","href":"http://localhost:3000/teams"},{"rel":"teams_paypal_preferences","href":"http://localhost:3000/teams_paypal_preferences"},{"rel":"teams_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"teams_results","href":"http://localhost:3000/teams_results"},{"rel":"team_statistics","href":"http://localhost:3000/team_statistics"},{"rel":"team_stores","href":"http://localhost:3000/team_stores"},{"rel":"wepay_account_access_grants","href":"http://localhost:3000/wepay_account_access_grants"},{"rel":"time_zones","href":"http://localhost:3000/time_zones"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"tsl_metadata","href":"http://localhost:3000/tsl_metadata"},{"rel":"tsl_chats","href":"http://localhost:3000/tsl_chats"},{"rel":"tsl_photos","href":"http://localhost:3000/tsl_photos"},{"rel":"tsl_scores","href":"http://localhost:3000/tsl_scores"},{"rel":"user_team_experiences","href":"http://localhost:3000/user_team_experiences"},{"rel":"users","href":"http://localhost:3000/users"},{"rel":"wepay_accounts","href":"http://localhost:3000/wepay_accounts"},{"rel":"wepay_invoice_payment_details","href":"http://localhost:3000/wepay_invoice_payment_details"},{"rel":"dude","href":"http://localhost:3000/dude"},{"rel":"sweet","href":"http://localhost:3000/sweet"},{"rel":"random","href":"http://localhost:3000/random"},{"rel":"xyzzy","href":"http://localhost:3000/xyzzy"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/"}],"queries":[{"rel":"bulk_load","href":"http://localhost:3000/bulk_load","prompt":"Returns
|
40
47
|
a heterogeneous collection of the specified types for a specified team or
|
41
48
|
teams. Additional filters can be passed into requested types by passing them
|
42
49
|
in the url''s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01).
|
@@ -60,12 +67,12 @@ http_interactions:
|
|
60
67
|
returned."},{"name":"types","value":null,"prompt":"A comma separated list
|
61
68
|
of singular types that you want returned. You may also specify a query by
|
62
69
|
proceeding the type with a ''__<query_name>''. For instance ''member__personas''
|
63
|
-
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
70
|
+
will use ''personas'' query on the ''members'' endpoint."}]},{"rel":"me","href":"http://localhost:3000/me"},{"rel":"feature","href":"http://localhost:3000/feature","data":[{"name":"id","value":null},{"name":"type","value":null},{"name":"feature_name","value":null}]},{"rel":"partners_preferences","href":"http://localhost:3000/partners_preferences/search","data":[{"name":"user_id","value":null},{"name":"team_id","value":null},{"name":"member_id","value":null},{"name":"partner_id","value":null},{"name":"partner_name","value":null}]},{"rel":"partners_user_preferences","href":"http://localhost:3000/partners_user_preferences/search","data":[{"name":"user_id","value":null},{"name":"team_id","value":null},{"name":"partner_preference_id","value":null}]},{"rel":"forecast","href":"http://localhost:3000/forecasts/search","data":[{"name":"team_id","value":null},{"name":"event_id","value":null},{"name":"day_index","value":null}]},{"rel":"geocode","href":"http://localhost:3000/geocoded_locations/search","data":[{"name":"country","value":null},{"name":"postal_code","value":null}]},{"rel":"generate_firebase_token","href":"http://localhost:3000/generate_firebase_token","data":[{"name":"team_id","value":null},{"name":"version","value":null}]},{"rel":"invitation_finder","href":"http://localhost:3000/invitation_finder","data":[{"name":"email_address","value":null}]},{"rel":"messaging_permissions","href":"http://localhost:3000/messaging_permissions","data":[{"name":"team_id","value":null}]}],"commands":[{"rel":"send_invitations","href":"http://localhost:3000/send_invitations","prompt":"Send
|
64
71
|
any pending invitations for a specified email address","data":[{"name":"email_address","value":null}]},{"rel":"welcome","href":"http://localhost:3000/welcome","prompt":"Send
|
65
72
|
a welcome email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]},{"rel":"initiate_registration","href":"http://localhost:3000/initiate_registration","prompt":"Send
|
66
73
|
a signup email to an unregistered user to start the registration process","data":[{"name":"email_address","value":null},{"name":"client_id","value":null},{"name":"redirect_uri","value":null}]}]}}'
|
67
74
|
http_version: '1.1'
|
68
75
|
adapter_metadata:
|
69
|
-
effective_url: http://localhost:3000/?hmac_client_id=
|
70
|
-
recorded_at:
|
71
|
-
recorded_with: VCR
|
76
|
+
effective_url: http://localhost:3000/?hmac_client_id=classic_service&hmac_nonce=ec2df192-432a-4d54-a954-c56f129ce1c6&hmac_timestamp=1590177517
|
77
|
+
recorded_at: Fri, 22 May 2020 19:58:38 GMT
|
78
|
+
recorded_with: VCR 5.1.0
|