-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcode.txt
161 lines (81 loc) · 13.6 KB
/
code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
and a brief description of what they do.
test your code by calling the methods of your class and printing the results.
submit your code as a file named PhotosAPI.py
# PhotosAPI class methods
PhotosAPI() - constructor
get_media_items() - returns a list of the media items in the user's library
get_shared_albums() - returns a list of the shared albums in the user's library
get_albums() - returns a list of the albums in the user's library
create_album(album_name) - creates a new album with the name album_name
create_album_with_description(album_name,album_description) - creates a new album with the name album_name and the description album_description
create_shared_album(album_name) - creates a new shared album with the name album_name
create_shared_album_with_description(album_name,album_description) - creates a new shared album with the name album_name and the description album_description
get_album(album_id) - returns the album with the id album_id
add_media_item_to_album(media_item_id,album_id) - adds the media item with the id media_item_id to the album with the id album_id
remove_media_item_from_album(media_item_id,album_id) - removes the media item with the id media_item_id from the album with the id album_id
get_media_item(media_item_id) - returns the media item with the id media_item_id
get_shared_album(shared_album_id) - returns the shared album with the id shared_album_id
get_media_items_from_shared_album(shared_album_id) - returns the list of media items in the shared album with the id shared_album_id
get_media_item_from_shared_album(shared_album_id,media_item_id) - returns the media item with the id media_item_id from the shared album with the id shared_album_id
add_comment_to_media_item(media_item_id,comment_text) - adds the comment comment_text to the media item with the id media_item_id
remove_comment_from_media_item(media_item_id,comment_id) - removes the comment with the id comment_id from the media item with the id media_item_id
add_comment_to_media_item_in_shared_album(shared_album_id,media_item_id,comment_text) - adds the comment comment_text to the media item with the id media_item_id in the shared album with the id shared_album_id
remove_comment_from_media_item_in_shared_album(shared_album_id,media_item_id,comment_id) - removes the comment with the id comment_id from the media item with the id media_item_id in the shared album with the id shared_album_id
get_media_item_exif(media_item_id) - returns the exif data for the media item with the id media_item_id
get_media_item_exif_from_shared_album(shared_album_id,media_item_id) - returns the exif data for the media item with the id media_item_id in the shared album with the id shared_album_id
get_media_item_download_url(media_item_id) - returns the download url for the media item with the id media_item_id
get_media_item_download_url_from_shared_album(shared_album_id,media_item_id) - returns the download url for the media item with the id media_item_id in the shared album with the id shared_album_id
search_media_items(query) - returns a list of media items that match the search query query
search_media_items_in_shared_album(shared_album_id,query) - returns a list of media items in the shared album with the id shared_album_id that match the search query query
get_user_info() - returns the user's email address
get_user_profile() - returns the user's profile information
get_user_photos_library_settings() - returns the user's photos library settings
get_user_photos_library_settings_from_shared_album(shared_album_id) - returns the user's photos library settings for the shared album with the id shared_album_id
get_user_photos_library_metadata() - returns metadata about the user's photos library
get_user_photos_library_metadata_from_shared_album(shared_album_id) - returns metadata about the photos library of the user who owns the shared album with the id shared_album_id
get_user_photos_library_metadata_from_shared_album_contributor(shared_album_id) - returns metadata about the photos library of the user who contributed to the shared album with the id shared_album_id
get_user_photos_library_metadata_from_shared_album_collaborator(shared_album_id) - returns metadata about the photos library of the user who collaborated on the shared album with the id shared_album_id
get_user_photos_library_metadata_from_shared_album_viewer(shared_album_id) - returns metadata about the photos library of the user who viewed the shared album with the id shared_album_id
add_media_item(upload_token) - adds the media item with the upload token upload_token to the user's library
add_media_item_to_shared_album(shared_album_id,upload_token) - adds the media item with the upload token upload_token to the shared album with the id shared_album_id
get_media_item_upload_token_from_file(media_item_file) - returns an upload token for the media item in the file media_item_file
get_media_item_upload_token_from_url(media_item_url) - returns an upload token for the media item at the url media_item_url
get_media_item_upload_token_from_bytes(media_item_bytes_array) - returns an upload token for the media item in the byte array media_item_bytes_array
get_media_item_upload_token_from_stream(media_item_stream) - returns an upload token for the media item in the stream media_item_stream
get_media_item_upload_token_from_file_in_shared_album(shared_album_id,media_item_file) - returns an upload token for the media item in the file media_item_file to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_url_in_shared_album(shared_album_id,media_item_url) - returns an upload token for the media item at the url media_item_url to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_bytes_in_shared_album(shared_album_id,media_item_bytes_array) - returns an upload token for the media item in the byte array media_item_bytes_array to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_stream_in_shared_album(shared_album_id,media_item_stream) - returns an upload token for the media item in the stream media_item_stream to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_file_in_shared_album_contributor(shared_album_id,media_item_file) - returns an upload token for the media item in the file media_item_file to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_url_in_shared_album_contributor(shared_album_id,media_item_url) - returns an upload token for the media item at the url media_item_url to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_bytes_in_shared_album_contributor(shared_album_id,media_item_bytes_array) - returns an upload token for the media item in the byte array media_item_bytes_array to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_stream_in_shared_album_contributor(shared_album_id,media_item_stream) - returns an upload token for the media item in the stream media_item_stream to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_file_in_shared_album_collaborator(shared_album_id,media_item_file) - returns an upload token for the media item in the file media_item_file to be added to the shared album with the id shared_album_id by a collaborator
get_media_item_upload_token_from_url_in_shared_album_collaborator(shared_album_id,media_item_url) - returns an upload token for the media item at the url media_item_url to be added to the shared album with the id shared_album_id by a collaborator
get_media_item_upload_token_from_bytes_in_shared_album_collaborator(shared_album_id,media_item_bytes_array) - returns an upload token for the media item in the byte array media_item_bytes_array to be added to the shared album with the id shared_album_id by a collaborator
get_media_item_upload_token_from_stream_in_shared_album_collaborator(shared_album_id,media_item_stream) - returns an upload token for the media item in the stream media_item_stream to be added to the shared album with the id shared_album_id by a collaborator
get_media_item_upload_token_from_file_in_shared_album_viewer(shared_album_id,media_item_file) - returns an upload token for the media item in the file media_item_file to be added to the shared album with the id shared_album_id by a viewer
get_media_item_upload_token_from_url_in_shared_album_viewer(shared_album_id,media_item_url) - returns an upload token for the media item at the url media_item_url to be added to the shared album with the id shared_album_id by a viewer
get_media_item_upload_token_from_bytes_in_shared_album_viewer(shared_album_id,media_item_bytes_array) - returns an upload token for the media item in the byte array media_item_bytes_array to be added to the shared album with the id shared_album_id by a viewer
get_media_item_upload_token_from_stream_in_shared_album_viewer(shared_album_id,media_item_stream) - returns an upload token for the media item in the stream media_item_stream to be added to the shared album with the id shared_album_id by a viewer
batch_add_media_items(upload_tokens) - adds the media items with the upload tokens in the array upload_tokens to the user's library
batch_add_media_items_to_shared_album(shared_album_id,upload_tokens) - adds the media items with the upload tokens in the array upload_tokens to the shared album with the id shared_album_id
batch_add_media_items_to_shared_album_contributor(shared_album_id,upload_tokens) - adds the media items with the upload tokens in the array upload_tokens to the shared album with the id shared_album_id by a contributor
batch_add_media_items_to_shared_album_collaborator(shared_album_id,upload_tokens) - adds the media items with the upload tokens in the array upload_tokens to the shared album with the id shared_album_id by a collaborator
batch_add_media_items_to_shared_album_viewer(shared_album_id,upload_tokens) - adds the media items with the upload tokens in the array upload_tokens to the shared album with the id shared_album_id by a viewer
search_media_items_by_filters(filters) - returns a list of media items that match the search filters in the array filters
search_media_items_by_filters_in_shared_album(shared_album_id,filters) - returns a list of media items in the shared album with the id shared_album_id that match the search filters in the array filters
search_media_items_by_filters_in_shared_album_contributor(shared_album_id,filters) - returns a list of media items in the shared album with the id shared_album_id that match the search filters in the array filters by a contributor
search_media_items_by_filters_in_shared_album_collaborator(shared_album_id,filters) - returns a list of media items in the shared album with the id shared_album_id that match the search filters in the array filters by a collaborator
search_media_items_by_filters_in_shared_album_viewer(shared_album_id,filters) - returns a list of media items in the shared album with the id shared_album_id that match the search filters in the array filters by a viewer
get_media_item_upload_token_from_file_by_filters(media_item_file,filters) - returns an upload token for the media item in the file media_item_file with the search filters in the array filters
get_media_item_upload_token_from_url_by_filters(media_item_url,filters) - returns an upload token for the media item at the url media_item_url with the search filters in the array filters
get_media_item_upload_token_from_bytes_by_filters(media_item_bytes_array,filters) - returns an upload token for the media item in the byte array media_item_bytes_array with the search filters in the array filters
get_media_item_upload_token_from_stream_by_filters(media_item_stream,filters) - returns an upload token for the media item in the stream media_item_stream with the search filters in the array filters
get_media_item_upload_token_from_file_by_filters_in_shared_album(shared_album_id,media_item_file,filters) - returns an upload token for the media item in the file media_item_file with the search filters in the array filters to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_url_by_filters_in_shared_album(shared_album_id,media_item_url,filters) - returns an upload token for the media item at the url media_item_url with the search filters in the array filters to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_bytes_by_filters_in_shared_album(shared_album_id,media_item_bytes_array,filters) - returns an upload token for the media item in the byte array media_item_bytes_array with the search filters in the array filters to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_stream_by_filters_in_shared_album(shared_album_id,media_item_stream,filters) - returns an upload token for the media item in the stream media_item_stream with the search filters in the array filters to be added to the shared album with the id shared_album_id
get_media_item_upload_token_from_file_by_filters_in_shared_album_contributor(shared_album_id,media_item_file,filters) - returns an upload token for the media item in the file media_item_file with the search filters in the array filters to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_url_by_filters_in_shared_album_contributor(shared_album_id,media_item_url,filters) - returns an upload token for the media item at the url media_item_url with the search filters in the array filters to be added to the shared album with the id shared_album_id by a contributor
get_media_item_upload_token_from_bytes_by_filters_in_shared_album_contributor