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/members/search?id=3&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/members/search?id=3&hmac_client_id=classic&hmac_nonce=6a4ced52-6698-45d6-8533-0d48fb8c7b9e&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
|
+
- c278b412e3b396d541810a92123304496d9bc1ba5b316dd1679c98956991f7f5
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,36 +19,36 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '12308'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"efe261505405e721de4347d6d4f03fc0"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 2b903644-5988-4852-bd8a-72d5c137b41c
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.104963'
|
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/members","rel":"members","template":{"data":[{"name":"first_name","value":null},{"name":"last_name","value":null},{"name":"gender","value":null},{"name":"position","value":null},{"name":"is_manager","value":null},{"name":"birthday","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
40
40
|
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
41
41
|
is deprecated and will be removed in a future version, use is_address_hidden
|
42
|
-
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/search?id=3"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/search?id=3"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
43
43
|
number of items to return for each page. Sending this parameter with the query
|
44
44
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
45
45
|
number of the page to be returned. This requires that paging be turned on
|
46
46
|
by also providing the page_size parameter."}]},{"rel":"managers","href":"http://localhost:3000/members/managers","data":[{"name":"team_id","value":null}]},{"rel":"personas","href":"http://localhost:3000/members/personas","prompt":"Given
|
47
47
|
a user ID, returns members directly associated with the user as well as members
|
48
48
|
associated with the user via a shared access contact.","data":[{"name":"user_id","value":null}]},{"rel":"owner","href":"http://localhost:3000/members/owner","data":[{"name":"team_id","value":null}]},{"rel":"commissioners","href":"http://localhost:3000/members/commissioners","prompt":"BETA:
|
49
|
-
(this query is subject to change or suddenly disappear) Given a a team_id
|
50
|
-
returns all members that are commissioners of the divisions
|
51
|
-
is in.","data":[{"name":"team_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
49
|
+
(this query is subject to change or suddenly disappear) Given a a team_id
|
50
|
+
or division_id, returns all members that are commissioners of the divisions
|
51
|
+
that the team is in.","data":[{"name":"team_id","value":null},{"name":"division_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
52
52
|
a user ID, returns all members associated with user''s active season teams. If
|
53
53
|
include_archived_teams (boolean) parameter is supplied, members associated
|
54
54
|
with archived teams will be returned as well.","data":[{"name":"user_id","value":null},{"name":"include_archived_teams","value":null}]}],"commands":[{"rel":"disable_member","href":"http://localhost:3000/members/disable_member","data":[{"name":"member_id","value":null}]},{"rel":"upload_member_photo","href":"http://localhost:3000/members/upload_member_photo","data":[{"name":"member_id","value":null},{"name":"file","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"remove_member_photo","href":"http://localhost:3000/members/remove_member_photo","data":[{"name":"member_id","value":null}]},{"rel":"generate_member_thumbnail","href":"http://localhost:3000/members/generate_member_thumbnail","data":[{"name":"member_id","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"import_from_team","href":"http://localhost:3000/members/import_from_team","prompt":"Given
|
@@ -56,19 +56,25 @@ http_interactions:
|
|
56
56
|
member data will be imported to the destination team. Newly created members
|
57
57
|
will be returned.","data":[{"name":"source_member_ids","value":null},{"name":"destination_team_id","value":null},{"name":"send_invites","value":null,"prompt":"Whether
|
58
58
|
or not to create and send invitations for each imported member. Valid values
|
59
|
-
are either ''true'' or ''false'' and will default to ''false''"}]}
|
59
|
+
are either ''true'' or ''false'' and will default to ''false''"}]},{"rel":"division_search","href":"http://localhost:3000/members/division_search","prompt":"BETA:
|
60
|
+
(This endpoint subject to change) Searches the division and subdivision for
|
61
|
+
the members meeting the search criteria.","data":[{"name":"division_id","value":null,"prompt":"Id
|
62
|
+
of the division and descendants to search"},{"name":"is_unassigned","value":null,"prompt":"true/false
|
63
|
+
- For all members in a division that aren''t assigned to a team. Not used
|
64
|
+
if blank."},{"name":"is_activated","value":null,"prompt":"true/false - For
|
65
|
+
all members in a division that have a user. Not used if blank."}]}],"items":[{"href":"http://localhost:3000/members/3","data":[{"name":"id","value":3},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Ownie"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
60
66
|
is deprecated and will be removed in a future version, use is_address_hidden
|
61
67
|
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
62
68
|
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":false},{"name":"invitation_code","value":null},{"name":"invitation_declined","value":null},{"name":"is_activated","value":true},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":false},{"name":"is_invited","value":false},{"name":"is_manager","value":true},{"name":"is_non_player","value":false},{"name":"is_owner","value":true},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"deprecated":true,"prompt":"%{field}
|
63
69
|
is deprecated and has been removed. Continued use of %{field} is not recommended
|
64
|
-
it will no longer be stored."},{"name":"last_name","value":"Owner"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":7},{"name":"updated_at","value":"2016-
|
70
|
+
it will no longer be stored."},{"name":"last_name","value":"Owner"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":7},{"name":"updated_at","value":"2016-08-10T23:47:21Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:21Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=3"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=3"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=3"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=3"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=3"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=3"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=3"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=3"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=3"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=3"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=3"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=3"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=3"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments/search?member_id=3"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=3"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=3"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=3"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=3"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=3"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=3"},{"rel":"member_photos","href":"http://localhost:3000/member_photos/search?member_id=3"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/3"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=3"},{"rel":"message_data","href":"http://localhost:3000/message_data/search?member_id=3"},{"rel":"messages","href":"http://localhost:3000/messages/search?member_id=3"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=3"},{"rel":"team","href":"http://localhost:3000/teams/1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=3"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=3"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=3"},{"rel":"user","href":"http://localhost:3000/users/7"}],"rel":"member-3"}]}}'
|
65
71
|
http_version: '1.1'
|
66
72
|
adapter_metadata:
|
67
|
-
effective_url: http://localhost:3000/members/search?id=3&hmac_client_id=classic&hmac_nonce=
|
68
|
-
recorded_at:
|
73
|
+
effective_url: http://localhost:3000/members/search?id=3&hmac_client_id=classic&hmac_nonce=6a4ced52-6698-45d6-8533-0d48fb8c7b9e&hmac_timestamp=1470941484
|
74
|
+
recorded_at: Thu, 11 Aug 2016 18:51:24 GMT
|
69
75
|
- request:
|
70
76
|
method: get
|
71
|
-
uri: http://localhost:3000/teams/1?hmac_client_id=classic&hmac_nonce=
|
77
|
+
uri: http://localhost:3000/teams/1?hmac_client_id=classic&hmac_nonce=509706a5-0c66-4b5b-afcc-1381cf69552a&hmac_timestamp=1470941484
|
72
78
|
body:
|
73
79
|
encoding: US-ASCII
|
74
80
|
string: ''
|
@@ -76,7 +82,7 @@ http_interactions:
|
|
76
82
|
User-Agent:
|
77
83
|
- Faraday v0.9.2
|
78
84
|
X-Teamsnap-Hmac:
|
79
|
-
-
|
85
|
+
- 676f47c147428fd071c9db5e5762913fa0103a83f0711f5abae4b8899801d5db
|
80
86
|
response:
|
81
87
|
status:
|
82
88
|
code: 200
|
@@ -85,30 +91,32 @@ http_interactions:
|
|
85
91
|
Content-Type:
|
86
92
|
- application/vnd.collection+json
|
87
93
|
Content-Length:
|
88
|
-
- '
|
94
|
+
- '17326'
|
89
95
|
X-Content-Type-Options:
|
90
96
|
- nosniff
|
91
97
|
ETag:
|
92
|
-
- '"
|
98
|
+
- '"ae5484ab9cafccfc5a41e8177ceac73d"'
|
93
99
|
Cache-Control:
|
94
100
|
- max-age=0, private, must-revalidate
|
95
101
|
X-Request-Id:
|
96
|
-
-
|
102
|
+
- f4c5ab20-2db6-40dd-9d51-fd9f5e82c4f9
|
97
103
|
X-Runtime:
|
98
|
-
- '0.
|
104
|
+
- '0.080609'
|
99
105
|
Connection:
|
100
106
|
- keep-alive
|
101
107
|
Server:
|
102
108
|
- thin
|
103
109
|
body:
|
104
110
|
encoding: UTF-8
|
105
|
-
string: '{"collection":{"version":"3.
|
111
|
+
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
|
106
112
|
time_zone parameter is required when creating a team, but for changing a team''s
|
107
|
-
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/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
|
113
|
+
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/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
|
108
114
|
number of items to return for each page. Sending this parameter with the query
|
109
115
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
110
116
|
number of the page to be returned. This requires that paging be turned on
|
111
|
-
by also providing the page_size parameter."}
|
117
|
+
by also providing the page_size parameter."},{"name":"sort_name","value":null,"prompt":"Sort
|
118
|
+
the returned dataset based on the name field, valid values are ''asc'' or
|
119
|
+
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
112
120
|
all teams accessible to current user that have the provided sport_id and have
|
113
121
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
114
122
|
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
|
@@ -119,14 +127,16 @@ http_interactions:
|
|
119
127
|
(This endpoint subject to change) Allow commissioners to send invitations
|
120
128
|
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:
|
121
129
|
(This endpoint subject to change) Allow commissioners to change the owner
|
122
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]}
|
130
|
+
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:
|
131
|
+
(This endpoint subject to change) Search the teams on the division_id and
|
132
|
+
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
|
123
133
|
States"},{"name":"location_postal_code","value":"80951"},{"name":"location_latitude","value":null},{"name":"location_longitude","value":null},{"name":"name","value":"Base
|
124
|
-
Team"},{"name":"plan_id","value":14},{"name":"billed_at","value":"2016-
|
134
|
+
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
|
125
135
|
Time (US & Canada)"},{"name":"time_zone_description","value":"Mountain Time
|
126
|
-
(US & Canada)"},{"name":"time_zone_iana_name","value":"America/Denver"},{"name":"time_zone_offset","value":"-07:00"},{"name":"updated_at","value":"2016-
|
127
|
-
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/
|
136
|
+
(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
|
137
|
+
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"}]}}'
|
128
138
|
http_version: '1.1'
|
129
139
|
adapter_metadata:
|
130
|
-
effective_url: http://localhost:3000/teams/1?hmac_client_id=classic&hmac_nonce=
|
131
|
-
recorded_at:
|
140
|
+
effective_url: http://localhost:3000/teams/1?hmac_client_id=classic&hmac_nonce=509706a5-0c66-4b5b-afcc-1381cf69552a&hmac_timestamp=1470941484
|
141
|
+
recorded_at: Thu, 11 Aug 2016 18:51:24 GMT
|
132
142
|
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/members/search?id=1&hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/members/search?id=1&hmac_client_id=classic&hmac_nonce=d13b331c-25de-409f-8ddf-fb4d4d657cb2&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
|
+
- b22778c07c227f8b6f7c00931a1fff490b1ce63d8a0f46446d2b3ac2315d73cc
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -19,36 +19,36 @@ http_interactions:
|
|
19
19
|
Content-Type:
|
20
20
|
- application/vnd.collection+json
|
21
21
|
Content-Length:
|
22
|
-
- '
|
22
|
+
- '12234'
|
23
23
|
X-Content-Type-Options:
|
24
24
|
- nosniff
|
25
25
|
ETag:
|
26
|
-
- '"
|
26
|
+
- '"b7d39a36d4f4fab4c0be143985bbea8d"'
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 7b87b135-ae40-481c-abbd-14d579f709c9
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.062085'
|
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/members","rel":"members","template":{"data":[{"name":"first_name","value":null},{"name":"last_name","value":null},{"name":"gender","value":null},{"name":"position","value":null},{"name":"is_manager","value":null},{"name":"birthday","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
40
40
|
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
41
41
|
is deprecated and will be removed in a future version, use is_address_hidden
|
42
|
-
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
42
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/search?id=1"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
43
43
|
number of items to return for each page. Sending this parameter with the query
|
44
44
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
45
45
|
number of the page to be returned. This requires that paging be turned on
|
46
46
|
by also providing the page_size parameter."}]},{"rel":"managers","href":"http://localhost:3000/members/managers","data":[{"name":"team_id","value":null}]},{"rel":"personas","href":"http://localhost:3000/members/personas","prompt":"Given
|
47
47
|
a user ID, returns members directly associated with the user as well as members
|
48
48
|
associated with the user via a shared access contact.","data":[{"name":"user_id","value":null}]},{"rel":"owner","href":"http://localhost:3000/members/owner","data":[{"name":"team_id","value":null}]},{"rel":"commissioners","href":"http://localhost:3000/members/commissioners","prompt":"BETA:
|
49
|
-
(this query is subject to change or suddenly disappear) Given a a team_id
|
50
|
-
returns all members that are commissioners of the divisions
|
51
|
-
is in.","data":[{"name":"team_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
49
|
+
(this query is subject to change or suddenly disappear) Given a a team_id
|
50
|
+
or division_id, returns all members that are commissioners of the divisions
|
51
|
+
that the team is in.","data":[{"name":"team_id","value":null},{"name":"division_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
52
52
|
a user ID, returns all members associated with user''s active season teams. If
|
53
53
|
include_archived_teams (boolean) parameter is supplied, members associated
|
54
54
|
with archived teams will be returned as well.","data":[{"name":"user_id","value":null},{"name":"include_archived_teams","value":null}]}],"commands":[{"rel":"disable_member","href":"http://localhost:3000/members/disable_member","data":[{"name":"member_id","value":null}]},{"rel":"upload_member_photo","href":"http://localhost:3000/members/upload_member_photo","data":[{"name":"member_id","value":null},{"name":"file","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"remove_member_photo","href":"http://localhost:3000/members/remove_member_photo","data":[{"name":"member_id","value":null}]},{"rel":"generate_member_thumbnail","href":"http://localhost:3000/members/generate_member_thumbnail","data":[{"name":"member_id","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"import_from_team","href":"http://localhost:3000/members/import_from_team","prompt":"Given
|
@@ -56,19 +56,25 @@ http_interactions:
|
|
56
56
|
member data will be imported to the destination team. Newly created members
|
57
57
|
will be returned.","data":[{"name":"source_member_ids","value":null},{"name":"destination_team_id","value":null},{"name":"send_invites","value":null,"prompt":"Whether
|
58
58
|
or not to create and send invitations for each imported member. Valid values
|
59
|
-
are either ''true'' or ''false'' and will default to ''false''"}]}
|
59
|
+
are either ''true'' or ''false'' and will default to ''false''"}]},{"rel":"division_search","href":"http://localhost:3000/members/division_search","prompt":"BETA:
|
60
|
+
(This endpoint subject to change) Searches the division and subdivision for
|
61
|
+
the members meeting the search criteria.","data":[{"name":"division_id","value":null,"prompt":"Id
|
62
|
+
of the division and descendants to search"},{"name":"is_unassigned","value":null,"prompt":"true/false
|
63
|
+
- For all members in a division that aren''t assigned to a team. Not used
|
64
|
+
if blank."},{"name":"is_activated","value":null,"prompt":"true/false - For
|
65
|
+
all members in a division that have a user. Not used if blank."}]}],"items":[{"href":"http://localhost:3000/members/1","data":[{"name":"id","value":1},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Commie"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
60
66
|
is deprecated and will be removed in a future version, use is_address_hidden
|
61
67
|
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
62
|
-
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":true},{"name":"invitation_code","value":null},{"name":"invitation_declined","value":null},{"name":"is_activated","value":
|
68
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":true},{"name":"invitation_code","value":null},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":false},{"name":"is_invited","value":false},{"name":"is_manager","value":true},{"name":"is_non_player","value":true},{"name":"is_owner","value":true},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"deprecated":true,"prompt":"%{field}
|
63
69
|
is deprecated and has been removed. Continued use of %{field} is not recommended
|
64
|
-
it will no longer be stored."},{"name":"last_name","value":"Commish"},{"name":"position","value":null},{"name":"team_id","value":null},{"name":"user_id","value":
|
70
|
+
it will no longer be stored."},{"name":"last_name","value":"Commish"},{"name":"position","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-08-11T18:51:25Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:21Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=1"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=1"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=1"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=1"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=1"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=1"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=1"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=1"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=1"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=1"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=1"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments/search?member_id=1"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=1"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=1"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=1"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=1"},{"rel":"member_photos","href":"http://localhost:3000/member_photos/search?member_id=1"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/1"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=1"},{"rel":"message_data","href":"http://localhost:3000/message_data/search?member_id=1"},{"rel":"messages","href":"http://localhost:3000/messages/search?member_id=1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=1"},{"rel":"team","href":"http://localhost:3000/teams/"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=1"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=1"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=1"}],"rel":"member-1"}]}}'
|
65
71
|
http_version: '1.1'
|
66
72
|
adapter_metadata:
|
67
|
-
effective_url: http://localhost:3000/members/search?id=1&hmac_client_id=classic&hmac_nonce=
|
68
|
-
recorded_at:
|
73
|
+
effective_url: http://localhost:3000/members/search?id=1&hmac_client_id=classic&hmac_nonce=d13b331c-25de-409f-8ddf-fb4d4d657cb2&hmac_timestamp=1470941486
|
74
|
+
recorded_at: Thu, 11 Aug 2016 18:51:26 GMT
|
69
75
|
- request:
|
70
76
|
method: get
|
71
|
-
uri: http://localhost:3000/assignments/search?member_id=1&hmac_client_id=classic&hmac_nonce=
|
77
|
+
uri: http://localhost:3000/assignments/search?member_id=1&hmac_client_id=classic&hmac_nonce=c2361d57-c41b-4b88-b5a0-56cc2a64f591&hmac_timestamp=1470941486
|
72
78
|
body:
|
73
79
|
encoding: US-ASCII
|
74
80
|
string: ''
|
@@ -76,7 +82,7 @@ http_interactions:
|
|
76
82
|
User-Agent:
|
77
83
|
- Faraday v0.9.2
|
78
84
|
X-Teamsnap-Hmac:
|
79
|
-
-
|
85
|
+
- 81652831daa84374c80b9df59be8ad44667f94eb9058b81d409805193793822c
|
80
86
|
response:
|
81
87
|
status:
|
82
88
|
code: 200
|
@@ -85,30 +91,35 @@ http_interactions:
|
|
85
91
|
Content-Type:
|
86
92
|
- application/vnd.collection+json
|
87
93
|
Content-Length:
|
88
|
-
- '
|
94
|
+
- '1863'
|
89
95
|
X-Content-Type-Options:
|
90
96
|
- nosniff
|
91
97
|
ETag:
|
92
|
-
- '"
|
98
|
+
- '"8526816b4878e176afe8026e7a7db336"'
|
93
99
|
Cache-Control:
|
94
100
|
- max-age=0, private, must-revalidate
|
95
101
|
X-Request-Id:
|
96
|
-
-
|
102
|
+
- d534068c-1cf2-48d9-98fa-dc48c4c3333d
|
97
103
|
X-Runtime:
|
98
|
-
- '0.
|
104
|
+
- '0.037994'
|
99
105
|
Connection:
|
100
106
|
- keep-alive
|
101
107
|
Server:
|
102
108
|
- thin
|
103
109
|
body:
|
104
110
|
encoding: UTF-8
|
105
|
-
string: '{"collection":{"version":"3.
|
111
|
+
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
|
112
|
+
is deprecated and has been removed. Continued use of member_id is not recommended
|
113
|
+
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?member_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
|
106
114
|
number of items to return for each page. Sending this parameter with the query
|
107
115
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
108
116
|
number of the page to be returned. This requires that paging be turned on
|
109
|
-
by also providing the page_size parameter."}]}]
|
117
|
+
by also providing the page_size parameter."}]}],"commands":[{"rel":"send_assignment_emails","href":"http://localhost:3000/assignments/send_assignment_emails","prompt":"BETA:
|
118
|
+
(This endpoint subject to change) Notifies all members on the team via email
|
119
|
+
regarding upcoming event assignments.","data":[{"name":"event_ids","value":null,"prompt":"A
|
120
|
+
comma delimited list of event ids."},{"name":"message","value":null},{"name":"sending_member_id","value":null},{"name":"team_id","value":null}]}]}}'
|
110
121
|
http_version: '1.1'
|
111
122
|
adapter_metadata:
|
112
|
-
effective_url: http://localhost:3000/assignments/search?member_id=1&hmac_client_id=classic&hmac_nonce=
|
113
|
-
recorded_at:
|
123
|
+
effective_url: http://localhost:3000/assignments/search?member_id=1&hmac_client_id=classic&hmac_nonce=c2361d57-c41b-4b88-b5a0-56cc2a64f591&hmac_timestamp=1470941486
|
124
|
+
recorded_at: Thu, 11 Aug 2016 18:51:26 GMT
|
114
125
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=
|
5
|
+
uri: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=41d93f13-90c3-41c4-a1ac-9f4080b4d30d&hmac_timestamp=1470941484
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"member_id":1}'
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
User-Agent:
|
11
11
|
- Faraday v0.9.2
|
12
12
|
X-Teamsnap-Hmac:
|
13
|
-
-
|
13
|
+
- 6138a8150c683194f0bff54e8c40988c72447dd30656f4bce36fc5cdb6d1a195
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -21,36 +21,36 @@ http_interactions:
|
|
21
21
|
Location:
|
22
22
|
- "/members/search?id=1"
|
23
23
|
Content-Length:
|
24
|
-
- '
|
24
|
+
- '12237'
|
25
25
|
X-Content-Type-Options:
|
26
26
|
- nosniff
|
27
27
|
ETag:
|
28
|
-
- '"
|
28
|
+
- '"4544efbe584f2c4a626bbf202ce44bfa"'
|
29
29
|
Cache-Control:
|
30
30
|
- max-age=0, private, must-revalidate
|
31
31
|
X-Request-Id:
|
32
|
-
-
|
32
|
+
- 76d8e6d6-c594-42b9-bf28-79fdfe71043e
|
33
33
|
X-Runtime:
|
34
|
-
- '0.
|
34
|
+
- '0.134075'
|
35
35
|
Connection:
|
36
36
|
- keep-alive
|
37
37
|
Server:
|
38
38
|
- thin
|
39
39
|
body:
|
40
40
|
encoding: UTF-8
|
41
|
-
string: '{"collection":{"version":"3.
|
41
|
+
string: '{"collection":{"version":"3.306.2","href":"http://localhost:3000/members","rel":"members","template":{"data":[{"name":"first_name","value":null},{"name":"last_name","value":null},{"name":"gender","value":null},{"name":"position","value":null},{"name":"is_manager","value":null},{"name":"birthday","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
42
42
|
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
43
43
|
is deprecated and will be removed in a future version, use is_address_hidden
|
44
|
-
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/disable_member"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
44
|
+
instead."},{"name":"is_address_hidden","value":null},{"name":"is_non_player","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_zip","value":null},{"name":"jersey_number","value":null},{"name":"team_id","value":null},{"name":"is_ownership_pending","value":null},{"name":"type","value":"member"}]},"links":[{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments"},{"rel":"member_balances","href":"http://localhost:3000/member_balances"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_payments","href":"http://localhost:3000/member_payments"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics"},{"rel":"message_data","href":"http://localhost:3000/message_data"},{"rel":"messages","href":"http://localhost:3000/messages"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data"},{"rel":"team","href":"http://localhost:3000/teams"},{"rel":"team_media","href":"http://localhost:3000/team_media"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"user","href":"http://localhost:3000/users"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/members/disable_member"}],"queries":[{"rel":"search","href":"http://localhost:3000/members/search","data":[{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"id","value":null},{"name":"page_size","value":null,"prompt":"The
|
45
45
|
number of items to return for each page. Sending this parameter with the query
|
46
46
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
47
47
|
number of the page to be returned. This requires that paging be turned on
|
48
48
|
by also providing the page_size parameter."}]},{"rel":"managers","href":"http://localhost:3000/members/managers","data":[{"name":"team_id","value":null}]},{"rel":"personas","href":"http://localhost:3000/members/personas","prompt":"Given
|
49
49
|
a user ID, returns members directly associated with the user as well as members
|
50
50
|
associated with the user via a shared access contact.","data":[{"name":"user_id","value":null}]},{"rel":"owner","href":"http://localhost:3000/members/owner","data":[{"name":"team_id","value":null}]},{"rel":"commissioners","href":"http://localhost:3000/members/commissioners","prompt":"BETA:
|
51
|
-
(this query is subject to change or suddenly disappear) Given a a team_id
|
52
|
-
returns all members that are commissioners of the divisions
|
53
|
-
is in.","data":[{"name":"team_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
51
|
+
(this query is subject to change or suddenly disappear) Given a a team_id
|
52
|
+
or division_id, returns all members that are commissioners of the divisions
|
53
|
+
that the team is in.","data":[{"name":"team_id","value":null},{"name":"division_id","value":null}]},{"rel":"importable_members","href":"http://localhost:3000/members/importable_members","prompt":"Given
|
54
54
|
a user ID, returns all members associated with user''s active season teams. If
|
55
55
|
include_archived_teams (boolean) parameter is supplied, members associated
|
56
56
|
with archived teams will be returned as well.","data":[{"name":"user_id","value":null},{"name":"include_archived_teams","value":null}]}],"commands":[{"rel":"disable_member","href":"http://localhost:3000/members/disable_member","data":[{"name":"member_id","value":null}]},{"rel":"upload_member_photo","href":"http://localhost:3000/members/upload_member_photo","data":[{"name":"member_id","value":null},{"name":"file","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"remove_member_photo","href":"http://localhost:3000/members/remove_member_photo","data":[{"name":"member_id","value":null}]},{"rel":"generate_member_thumbnail","href":"http://localhost:3000/members/generate_member_thumbnail","data":[{"name":"member_id","value":null},{"name":"x","value":null},{"name":"y","value":null},{"name":"width","value":null},{"name":"height","value":null}]},{"rel":"import_from_team","href":"http://localhost:3000/members/import_from_team","prompt":"Given
|
@@ -58,14 +58,20 @@ http_interactions:
|
|
58
58
|
member data will be imported to the destination team. Newly created members
|
59
59
|
will be returned.","data":[{"name":"source_member_ids","value":null},{"name":"destination_team_id","value":null},{"name":"send_invites","value":null,"prompt":"Whether
|
60
60
|
or not to create and send invitations for each imported member. Valid values
|
61
|
-
are either ''true'' or ''false'' and will default to ''false''"}]}
|
61
|
+
are either ''true'' or ''false'' and will default to ''false''"}]},{"rel":"division_search","href":"http://localhost:3000/members/division_search","prompt":"BETA:
|
62
|
+
(This endpoint subject to change) Searches the division and subdivision for
|
63
|
+
the members meeting the search criteria.","data":[{"name":"division_id","value":null,"prompt":"Id
|
64
|
+
of the division and descendants to search"},{"name":"is_unassigned","value":null,"prompt":"true/false
|
65
|
+
- For all members in a division that aren''t assigned to a team. Not used
|
66
|
+
if blank."},{"name":"is_activated","value":null,"prompt":"true/false - For
|
67
|
+
all members in a division that have a user. Not used if blank."}]}],"items":[{"href":"http://localhost:3000/members/1","data":[{"name":"id","value":1},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Commie"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
62
68
|
is deprecated and will be removed in a future version, use is_address_hidden
|
63
69
|
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
64
70
|
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":true},{"name":"invitation_code","value":null},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":false},{"name":"is_invited","value":false},{"name":"is_manager","value":true},{"name":"is_non_player","value":true},{"name":"is_owner","value":true},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"deprecated":true,"prompt":"%{field}
|
65
71
|
is deprecated and has been removed. Continued use of %{field} is not recommended
|
66
|
-
it will no longer be stored."},{"name":"last_name","value":"Commish"},{"name":"position","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-
|
72
|
+
it will no longer be stored."},{"name":"last_name","value":"Commish"},{"name":"position","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-08-11T18:51:25Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:21Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=1"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=1"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=1"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=1"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=1"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=1"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=1"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=1"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=1"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=1"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=1"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=1"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=1"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments/search?member_id=1"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=1"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=1"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=1"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=1"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=1"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=1"},{"rel":"member_photos","href":"http://localhost:3000/member_photos/search?member_id=1"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/1"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=1"},{"rel":"message_data","href":"http://localhost:3000/message_data/search?member_id=1"},{"rel":"messages","href":"http://localhost:3000/messages/search?member_id=1"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=1"},{"rel":"team","href":"http://localhost:3000/teams/"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=1"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=1"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=1"}],"rel":"member-1"}]}}'
|
67
73
|
http_version: '1.1'
|
68
74
|
adapter_metadata:
|
69
|
-
effective_url: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=
|
70
|
-
recorded_at:
|
75
|
+
effective_url: http://localhost:3000/members/disable_member?hmac_client_id=classic&hmac_nonce=41d93f13-90c3-41c4-a1ac-9f4080b4d30d&hmac_timestamp=1470941484
|
76
|
+
recorded_at: Thu, 11 Aug 2016 18:51:25 GMT
|
71
77
|
recorded_with: VCR 2.9.3
|
@@ -20,34 +20,36 @@ http_interactions:
|
|
20
20
|
Content-Type:
|
21
21
|
- application/vnd.collection+json
|
22
22
|
Content-Length:
|
23
|
-
- '
|
23
|
+
- '18710'
|
24
24
|
X-Content-Type-Options:
|
25
25
|
- nosniff
|
26
26
|
X-RateLimit-Limit:
|
27
27
|
- '5000'
|
28
28
|
X-RateLimit-Remaining:
|
29
|
-
- '
|
29
|
+
- '4997'
|
30
30
|
X-RateLimit-Reset:
|
31
|
-
- '
|
31
|
+
- '1470944882'
|
32
32
|
Cache-Control:
|
33
33
|
- no-cache
|
34
34
|
X-Request-Id:
|
35
|
-
-
|
35
|
+
- 62ee1018-7f4e-44b8-88a1-f6c79ac8e696
|
36
36
|
X-Runtime:
|
37
|
-
- '0.
|
37
|
+
- '0.408468'
|
38
38
|
Connection:
|
39
39
|
- keep-alive
|
40
40
|
Server:
|
41
41
|
- thin
|
42
42
|
body:
|
43
43
|
encoding: UTF-8
|
44
|
-
string: '{"collection":{"version":"3.
|
44
|
+
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
|
45
45
|
time_zone parameter is required when creating a team, but for changing a team''s
|
46
|
-
time_zone, use the update_time_zone command"},{"name":"sport_id","value":null},{"name":"division_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/invite"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null},{"name":"division_id","value":null},{"name":"page_size","value":null,"prompt":"The
|
46
|
+
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/invite"}],"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
|
47
47
|
number of items to return for each page. Sending this parameter with the query
|
48
48
|
will enable paging for the returned collection."},{"name":"page_number","value":null,"prompt":"The
|
49
49
|
number of the page to be returned. This requires that paging be turned on
|
50
|
-
by also providing the page_size parameter."}
|
50
|
+
by also providing the page_size parameter."},{"name":"sort_name","value":null,"prompt":"Sort
|
51
|
+
the returned dataset based on the name field, valid values are ''asc'' or
|
52
|
+
''desc''."}]},{"rel":"available_for_statistic_import","href":"http://localhost:3000/teams/available_for_statistic_import","prompt":"Finds
|
51
53
|
all teams accessible to current user that have the provided sport_id and have
|
52
54
|
at least one statistic to import","data":[{"name":"sport_id","value":null}]},{"rel":"active_teams","href":"http://localhost:3000/teams/active","prompt":"Finds
|
53
55
|
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
|
@@ -58,21 +60,23 @@ http_interactions:
|
|
58
60
|
(This endpoint subject to change) Allow commissioners to send invitations
|
59
61
|
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:
|
60
62
|
(This endpoint subject to change) Allow commissioners to change the owner
|
61
|
-
of a league team.","data":[{"name":"team_id","value":null},{"name":"member_id","value":null}]}
|
63
|
+
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:
|
64
|
+
(This endpoint subject to change) Search the teams on the division_id and
|
65
|
+
it''s descendants.","data":[{"name":"division_id","value":null},{"name":"is_active","value":null}]}],"items":[{"href":"http://localhost:3000/members/9","data":[{"name":"id","value":9},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Uninvited
|
62
66
|
1"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
63
67
|
is deprecated and will be removed in a future version, use is_address_hidden
|
64
68
|
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
65
|
-
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":false},{"name":"invitation_code","value":"
|
69
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":false},{"name":"invitation_code","value":"1b85d2acdc6035c33190557b"},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":true},{"name":"is_invited","value":true},{"name":"is_manager","value":false},{"name":"is_non_player","value":false},{"name":"is_owner","value":false},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"deprecated":true,"prompt":"%{field}
|
66
70
|
is deprecated and has been removed. Continued use of %{field} is not recommended
|
67
|
-
it will no longer be stored."},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-
|
71
|
+
it will no longer be stored."},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-08-11T16:47:51Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:22Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=9"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=9"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=9"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=9"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=9"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=9"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=9"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=9"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=9"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=9"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=9"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=9"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=9"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments/search?member_id=9"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=9"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=9"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=9"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=9"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=9"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=9"},{"rel":"member_photos","href":"http://localhost:3000/member_photos/search?member_id=9"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/9"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=9"},{"rel":"message_data","href":"http://localhost:3000/message_data/search?member_id=9"},{"rel":"messages","href":"http://localhost:3000/messages/search?member_id=9"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=9"},{"rel":"team","href":"http://localhost:3000/teams/1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=9"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=9"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=9"}],"rel":"member-9"},{"href":"http://localhost:3000/members/11","data":[{"name":"id","value":11},{"name":"type","value":"member"},{"name":"address_city","value":null},{"name":"address_state","value":null},{"name":"address_street1","value":null},{"name":"address_street2","value":null},{"name":"address_zip","value":null},{"name":"birthday","value":""},{"name":"first_name","value":"Invited
|
68
72
|
0"},{"name":"gender","value":null},{"name":"has_facebook_post_scores_enabled","value":false},{"name":"hide_address","value":null,"deprecated":true,"prompt":"hide_address
|
69
73
|
is deprecated and will be removed in a future version, use is_address_hidden
|
70
74
|
instead."},{"name":"is_address_hidden","value":null},{"name":"hide_age","value":null,"deprecated":true,"prompt":"hide_age
|
71
|
-
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":false},{"name":"invitation_code","value":"
|
75
|
+
is deprecated and will be removed in a future version, use is_age_hidden instead."},{"name":"is_age_hidden","value":null},{"name":"is_commissioner","value":false},{"name":"invitation_code","value":"r69f215d1a1f3c7246782dea7"},{"name":"invitation_declined","value":null},{"name":"is_activated","value":false},{"name":"is_pushable","value":false},{"name":"is_alertable","value":false},{"name":"is_emailable","value":true},{"name":"is_invitable","value":true},{"name":"is_invited","value":true},{"name":"is_manager","value":false},{"name":"is_non_player","value":false},{"name":"is_owner","value":false},{"name":"is_ownership_pending","value":null},{"name":"jersey_number","value":null},{"name":"last_logged_in_at","value":null,"deprecated":true,"prompt":"%{field}
|
72
76
|
is deprecated and has been removed. Continued use of %{field} is not recommended
|
73
|
-
it will no longer be stored."},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-
|
77
|
+
it will no longer be stored."},{"name":"last_name","value":"Player"},{"name":"position","value":null},{"name":"team_id","value":1},{"name":"user_id","value":null},{"name":"updated_at","value":"2016-08-10T23:47:22Z","type":"DateTime"},{"name":"created_at","value":"2016-08-10T23:47:22Z","type":"DateTime"}],"links":[{"rel":"assignments","href":"http://localhost:3000/assignments/search?member_id=11"},{"rel":"availabilities","href":"http://localhost:3000/availabilities/search?member_id=11"},{"rel":"broadcast_email_attachments","href":"http://localhost:3000/broadcast_email_attachments/search?member_id=11"},{"rel":"broadcast_emails","href":"http://localhost:3000/broadcast_emails/search?member_id=11"},{"rel":"broadcast_alerts","href":"http://localhost:3000/broadcast_alerts/search?member_id=11"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses/search?member_id=11"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers/search?member_id=11"},{"rel":"contacts","href":"http://localhost:3000/contacts/search?member_id=11"},{"rel":"custom_data","href":"http://localhost:3000/custom_data/search?member_id=11"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields/search?team_id=1"},{"rel":"league_custom_data","href":"http://localhost:3000/league_custom_data/search?member_id=11"},{"rel":"league_custom_fields","href":"http://localhost:3000/league_custom_fields/search?team_id=1"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts/search?member_id=11"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions/search?member_id=11"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics/search?team_id=1"},{"rel":"league_registrant_documents","href":"http://localhost:3000/league_registrant_documents/search?member_id=11"},{"rel":"member_assignments","href":"http://localhost:3000/member_assignments/search?member_id=11"},{"rel":"member_balances","href":"http://localhost:3000/member_balances/search?member_id=11"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses/search?member_id=11"},{"rel":"member_files","href":"http://localhost:3000/member_files/search?member_id=11"},{"rel":"member_links","href":"http://localhost:3000/member_links/search?member_id=11"},{"rel":"member_payments","href":"http://localhost:3000/member_payments/search?member_id=11"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers/search?member_id=11"},{"rel":"member_photos","href":"http://localhost:3000/member_photos/search?member_id=11"},{"rel":"member_preferences","href":"http://localhost:3000/members_preferences/11"},{"rel":"member_statistics","href":"http://localhost:3000/member_statistics/search?member_id=11"},{"rel":"message_data","href":"http://localhost:3000/message_data/search?member_id=11"},{"rel":"messages","href":"http://localhost:3000/messages/search?member_id=11"},{"rel":"statistic_data","href":"http://localhost:3000/statistic_data/search?member_id=11"},{"rel":"team","href":"http://localhost:3000/teams/1"},{"rel":"team_media","href":"http://localhost:3000/team_media/search?member_id=11"},{"rel":"team_medium_comments","href":"http://localhost:3000/team_medium_comments/search?member_id=11"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses/search?member_id=11"}],"rel":"member-11"}]}}'
|
74
78
|
http_version: '1.1'
|
75
79
|
adapter_metadata:
|
76
80
|
effective_url: http://localhost:3000/teams/invite
|
77
|
-
recorded_at:
|
81
|
+
recorded_at: Thu, 11 Aug 2016 18:51:25 GMT
|
78
82
|
recorded_with: VCR 2.9.3
|