spotify-apimatic-sdk 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. spotify_apimatic_sdk-1.0.0/LICENSE +30 -0
  2. spotify_apimatic_sdk-1.0.0/MANIFEST.in +2 -0
  3. spotify_apimatic_sdk-1.0.0/PKG-INFO +150 -0
  4. spotify_apimatic_sdk-1.0.0/README.md +133 -0
  5. spotify_apimatic_sdk-1.0.0/pyproject.toml +25 -0
  6. spotify_apimatic_sdk-1.0.0/setup.cfg +8 -0
  7. spotify_apimatic_sdk-1.0.0/spotify_apimatic_sdk.egg-info/PKG-INFO +150 -0
  8. spotify_apimatic_sdk-1.0.0/spotify_apimatic_sdk.egg-info/SOURCES.txt +191 -0
  9. spotify_apimatic_sdk-1.0.0/spotify_apimatic_sdk.egg-info/dependency_links.txt +1 -0
  10. spotify_apimatic_sdk-1.0.0/spotify_apimatic_sdk.egg-info/requires.txt +7 -0
  11. spotify_apimatic_sdk-1.0.0/spotify_apimatic_sdk.egg-info/top_level.txt +3 -0
  12. spotify_apimatic_sdk-1.0.0/spotifywebapi/__init__.py +12 -0
  13. spotify_apimatic_sdk-1.0.0/spotifywebapi/api_helper.py +19 -0
  14. spotify_apimatic_sdk-1.0.0/spotifywebapi/configuration.py +318 -0
  15. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/__init__.py +20 -0
  16. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/albums_controller.py +498 -0
  17. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/artists_controller.py +327 -0
  18. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/audiobooks_controller.py +441 -0
  19. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/base_controller.py +67 -0
  20. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/categories_controller.py +161 -0
  21. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/chapters_controller.py +157 -0
  22. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/episodes_controller.py +390 -0
  23. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/genres_controller.py +84 -0
  24. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/markets_controller.py +82 -0
  25. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/o_auth_authorization_controller.py +156 -0
  26. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/player_controller.py +807 -0
  27. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/playlists_controller.py +851 -0
  28. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/search_controller.py +123 -0
  29. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/shows_controller.py +439 -0
  30. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/tracks_controller.py +821 -0
  31. spotify_apimatic_sdk-1.0.0/spotifywebapi/controllers/users_controller.py +649 -0
  32. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/__init__.py +11 -0
  33. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/api_exception.py +36 -0
  34. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/bad_request_exception.py +56 -0
  35. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/forbidden_exception.py +56 -0
  36. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/not_found_exception.py +56 -0
  37. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/o_auth_provider_exception.py +73 -0
  38. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/too_many_requests_exception.py +56 -0
  39. spotify_apimatic_sdk-1.0.0/spotifywebapi/exceptions/unauthorized_exception.py +56 -0
  40. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/__init__.py +11 -0
  41. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/api_response.py +67 -0
  42. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/auth/__init__.py +5 -0
  43. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/auth/o_auth_2.py +336 -0
  44. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/http_call_back.py +20 -0
  45. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/http_client_provider.py +23 -0
  46. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/http_method_enum.py +25 -0
  47. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/http_request.py +55 -0
  48. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/http_response.py +45 -0
  49. spotify_apimatic_sdk-1.0.0/spotifywebapi/http/proxy_settings.py +50 -0
  50. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/__init__.py +142 -0
  51. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/album_base.py +264 -0
  52. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/album_group_enum.py +51 -0
  53. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/album_object.py +375 -0
  54. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/album_restriction_object.py +109 -0
  55. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/album_type_enum.py +62 -0
  56. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/artist_discography_album_object.py +298 -0
  57. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/artist_object.py +335 -0
  58. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/audio_analysis_object.py +266 -0
  59. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/audio_features_object.py +518 -0
  60. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/audiobook_base.py +353 -0
  61. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/audiobook_object.py +369 -0
  62. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/author_object.py +85 -0
  63. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/categories.py +162 -0
  64. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/category_object.py +117 -0
  65. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/chapter_base.py +392 -0
  66. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/chapter_object.py +408 -0
  67. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/chapter_restriction_object.py +113 -0
  68. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/context_object.py +181 -0
  69. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/copyright_object.py +130 -0
  70. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/currently_playing_context_object.py +314 -0
  71. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/currently_playing_object.py +241 -0
  72. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/cursor_object.py +108 -0
  73. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/cursor_paged_artists.py +75 -0
  74. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/cursor_paging_object.py +183 -0
  75. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/cursor_paging_play_history_object.py +214 -0
  76. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/cursor_paging_simplified_artist_object.py +213 -0
  77. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/device_object.py +278 -0
  78. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/disallows_object.py +314 -0
  79. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/episode_base.py +394 -0
  80. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/episode_object.py +665 -0
  81. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/episode_restriction_object.py +112 -0
  82. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/error_object.py +85 -0
  83. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/explicit_content_settings_object.py +110 -0
  84. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/external_id_object.py +156 -0
  85. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/external_url_object.py +107 -0
  86. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/followers_object.py +134 -0
  87. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/image_object.py +168 -0
  88. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/include_external_enum.py +45 -0
  89. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/item_type_1_enum.py +56 -0
  90. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/item_type_2_enum.py +45 -0
  91. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/item_type_3_enum.py +45 -0
  92. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/item_type_enum.py +58 -0
  93. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/linked_track_object.py +205 -0
  94. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_albums.py +76 -0
  95. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_artists.py +76 -0
  96. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_audio_features.py +77 -0
  97. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_audiobooks.py +77 -0
  98. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_chapters.py +77 -0
  99. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_devices.py +76 -0
  100. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_episodes.py +77 -0
  101. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_genres.py +69 -0
  102. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_simplified_shows.py +74 -0
  103. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/many_tracks.py +76 -0
  104. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/markets.py +85 -0
  105. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_albums_request.py +90 -0
  106. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_episodes_request.py +73 -0
  107. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_episodes_request_1.py +89 -0
  108. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_following_request.py +74 -0
  109. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_following_request_1.py +90 -0
  110. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_player_play_request.py +165 -0
  111. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_player_request.py +103 -0
  112. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_shows_request.py +89 -0
  113. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_tracks_request.py +74 -0
  114. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/me_tracks_request_1.py +90 -0
  115. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/meta.py +227 -0
  116. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/mode_enum.py +52 -0
  117. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/narrator_object.py +85 -0
  118. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/o_auth_provider_error_enum.py +67 -0
  119. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/o_auth_scope_enum.py +98 -0
  120. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/o_auth_token.py +113 -0
  121. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paged_albums.py +75 -0
  122. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paged_categories.py +74 -0
  123. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_artist_discography_album_object.py +163 -0
  124. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_artist_object.py +162 -0
  125. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_featured_playlist_object.py +113 -0
  126. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_object.py +142 -0
  127. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_playlist_object.py +163 -0
  128. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_playlist_track_object.py +163 -0
  129. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_saved_album_object.py +163 -0
  130. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_saved_audiobook_object.py +163 -0
  131. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_saved_episode_object.py +163 -0
  132. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_saved_show_object.py +163 -0
  133. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_saved_track_object.py +163 -0
  134. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_album_object.py +163 -0
  135. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_audiobook_object.py +162 -0
  136. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_chapter_object.py +162 -0
  137. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_episode_object.py +162 -0
  138. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_show_object.py +160 -0
  139. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_simplified_track_object.py +163 -0
  140. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/paging_track_object.py +162 -0
  141. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/play_history_object.py +141 -0
  142. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_object.py +425 -0
  143. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_owner_object.py +238 -0
  144. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_snapshot_id.py +85 -0
  145. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_track_object.py +171 -0
  146. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_tracks_ref_object.py +109 -0
  147. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlist_user_object.py +231 -0
  148. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlists_followers_request.py +86 -0
  149. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlists_request.py +160 -0
  150. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlists_tracks_request.py +121 -0
  151. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlists_tracks_request_1.py +188 -0
  152. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/playlists_tracks_request_2.py +109 -0
  153. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/private_user_object.py +379 -0
  154. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/public_user_object.py +268 -0
  155. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/queue_object.py +118 -0
  156. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/reason_enum.py +65 -0
  157. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/recommendation_seed_object.py +208 -0
  158. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/recommendations_object.py +96 -0
  159. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/release_date_precision_enum.py +62 -0
  160. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/resume_point_object.py +131 -0
  161. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/saved_album_object.py +118 -0
  162. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/saved_audiobook_object.py +118 -0
  163. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/saved_episode_object.py +116 -0
  164. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/saved_show_object.py +116 -0
  165. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/saved_track_object.py +118 -0
  166. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/search_items.py +256 -0
  167. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/section_object.py +362 -0
  168. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/segment_object.py +307 -0
  169. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/show_base.py +550 -0
  170. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/show_object.py +319 -0
  171. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/simplified_album_object.py +468 -0
  172. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/simplified_artist_object.py +228 -0
  173. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/simplified_playlist_object.py +398 -0
  174. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/simplified_track_object.py +494 -0
  175. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/time_interval_object.py +132 -0
  176. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/track.py +697 -0
  177. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/track_1.py +85 -0
  178. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/track_object.py +605 -0
  179. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/track_restriction_object.py +112 -0
  180. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_2_enum.py +56 -0
  181. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_3_enum.py +56 -0
  182. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_4_enum.py +56 -0
  183. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_5_enum.py +56 -0
  184. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_6_enum.py +56 -0
  185. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_8_enum.py +42 -0
  186. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_9_enum.py +42 -0
  187. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/type_enum.py +56 -0
  188. spotify_apimatic_sdk-1.0.0/spotifywebapi/models/users_playlists_request.py +154 -0
  189. spotify_apimatic_sdk-1.0.0/spotifywebapi/spotifywebapi_client.py +198 -0
  190. spotify_apimatic_sdk-1.0.0/spotifywebapi/utilities/__init__.py +6 -0
  191. spotify_apimatic_sdk-1.0.0/spotifywebapi/utilities/file_wrapper.py +45 -0
  192. spotify_apimatic_sdk-1.0.0/spotifywebapi/utilities/union_type_lookup.py +113 -0
@@ -0,0 +1,30 @@
1
+ This SDK was generated by APIMATIC.
2
+
3
+ License:
4
+ ========
5
+ The MIT License (MIT)
6
+ http://opensource.org/licenses/MIT
7
+
8
+ Copyright (c) 2014 - 2023 APIMATIC Limited
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ Trade Mark:
29
+ ==========
30
+ APIMATIC is a trade mark for APIMATIC Limited
@@ -0,0 +1,2 @@
1
+ include LICENSE
2
+ include README.md
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.4
2
+ Name: spotify-apimatic-sdk
3
+ Version: 1.0.0
4
+ Summary: spotify api sdk
5
+ Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
+ Project-URL: Documentation, https://developer.spotify.com/documentation/web-api
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
11
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
12
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
13
+ Requires-Dist: python-dotenv<2.0,>=0.21
14
+ Provides-Extra: testutils
15
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
16
+ Dynamic: license-file
17
+
18
+
19
+ # Getting Started with Spotify Web API
20
+
21
+ ## Introduction
22
+
23
+ You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more. Browse our available Web API endpoints using the sidebar at left, or via the navigation bar on top of this page on smaller screens.
24
+
25
+ In order to make successful Web API requests your app will need a valid access token. One can be obtained through <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">OAuth 2.0</a>.
26
+
27
+ The base URI for all Web API requests is `https://api.spotify.com/v1`.
28
+
29
+ Need help? See our <a href="https://developer.spotify.com/documentation/web-api/guides/">Web API guides</a> for more information, or visit the <a href="https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer">Spotify for Developers community forum</a> to ask questions and connect with other developers.
30
+
31
+ ## Install the Package
32
+
33
+ The package is compatible with Python versions `3.7+`.
34
+ Install the package from PyPi using the following pip command:
35
+
36
+ ```bash
37
+ pip install spotify-apimatic-sdk==1.0.0
38
+ ```
39
+
40
+ You can also view the package at:
41
+ https://pypi.python.org/pypi/spotify-apimatic-sdk/1.0.0
42
+
43
+ ## Initialize the API Client
44
+
45
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/client.md)
46
+
47
+ The following parameters are configurable for the API Client:
48
+
49
+ | Parameter | Type | Description |
50
+ | --- | --- | --- |
51
+ | environment | [`Environment`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
52
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
53
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
54
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
55
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
56
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
57
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
58
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
59
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
60
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
61
+ | authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
62
+
63
+ The API client can be initialized as follows:
64
+
65
+ ### Code-Based Client Initialization
66
+
67
+ ```python
68
+ from spotifywebapi.configuration import Environment
69
+ from spotifywebapi.http.auth.o_auth_2 import AuthorizationCodeAuthCredentials
70
+ from spotifywebapi.models.o_auth_scope_enum import OAuthScopeEnum
71
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
72
+
73
+ client = SpotifywebapiClient(
74
+ authorization_code_auth_credentials=AuthorizationCodeAuthCredentials(
75
+ o_auth_client_id='OAuthClientId',
76
+ o_auth_client_secret='OAuthClientSecret',
77
+ o_auth_redirect_uri='OAuthRedirectUri',
78
+ o_auth_scopes=[
79
+ OAuthScopeEnum.APP_REMOTE_CONTROL,
80
+ OAuthScopeEnum.PLAYLIST_READ_PRIVATE
81
+ ]
82
+ ),
83
+ environment=Environment.PRODUCTION
84
+ )
85
+ ```
86
+
87
+ ### Environment-Based Client Initialization
88
+
89
+ ```python
90
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
91
+
92
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
93
+ client = SpotifywebapiClient.from_environment(dotenv_path='/path/to/.env')
94
+ ```
95
+
96
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
97
+
98
+ ## Environments
99
+
100
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
101
+
102
+ ### Fields
103
+
104
+ | Name | Description |
105
+ | --- | --- |
106
+ | PRODUCTION | **Default** |
107
+
108
+ ## Authorization
109
+
110
+ This API uses the following authentication schemes.
111
+
112
+ * [`oauth_2_0 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
113
+
114
+ ## List of APIs
115
+
116
+ * [Albums](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/albums.md)
117
+ * [Artists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/artists.md)
118
+ * [Audiobooks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/audiobooks.md)
119
+ * [Categories](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/categories.md)
120
+ * [Chapters](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/chapters.md)
121
+ * [Episodes](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/episodes.md)
122
+ * [Genres](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/genres.md)
123
+ * [Markets](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/markets.md)
124
+ * [Player](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/player.md)
125
+ * [Playlists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/playlists.md)
126
+ * [Search](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/search.md)
127
+ * [Shows](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/shows.md)
128
+ * [Tracks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/tracks.md)
129
+ * [Users](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/users.md)
130
+
131
+ ## SDK Infrastructure
132
+
133
+ ### Configuration
134
+
135
+ * [ProxySettings](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md)
136
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
137
+
138
+ ### HTTP
139
+
140
+ * [HttpResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-response.md)
141
+ * [HttpRequest](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-request.md)
142
+
143
+ ### Utilities
144
+
145
+ * [ApiResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-response.md)
146
+ * [ApiHelper](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-helper.md)
147
+ * [HttpDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-date-time.md)
148
+ * [RFC3339DateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
149
+ * [UnixDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/unix-date-time.md)
150
+
@@ -0,0 +1,133 @@
1
+
2
+ # Getting Started with Spotify Web API
3
+
4
+ ## Introduction
5
+
6
+ You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more. Browse our available Web API endpoints using the sidebar at left, or via the navigation bar on top of this page on smaller screens.
7
+
8
+ In order to make successful Web API requests your app will need a valid access token. One can be obtained through <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">OAuth 2.0</a>.
9
+
10
+ The base URI for all Web API requests is `https://api.spotify.com/v1`.
11
+
12
+ Need help? See our <a href="https://developer.spotify.com/documentation/web-api/guides/">Web API guides</a> for more information, or visit the <a href="https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer">Spotify for Developers community forum</a> to ask questions and connect with other developers.
13
+
14
+ ## Install the Package
15
+
16
+ The package is compatible with Python versions `3.7+`.
17
+ Install the package from PyPi using the following pip command:
18
+
19
+ ```bash
20
+ pip install spotify-apimatic-sdk==1.0.0
21
+ ```
22
+
23
+ You can also view the package at:
24
+ https://pypi.python.org/pypi/spotify-apimatic-sdk/1.0.0
25
+
26
+ ## Initialize the API Client
27
+
28
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/client.md)
29
+
30
+ The following parameters are configurable for the API Client:
31
+
32
+ | Parameter | Type | Description |
33
+ | --- | --- | --- |
34
+ | environment | [`Environment`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
35
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
36
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
37
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
38
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
39
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
40
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
41
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
42
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
43
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
44
+ | authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
45
+
46
+ The API client can be initialized as follows:
47
+
48
+ ### Code-Based Client Initialization
49
+
50
+ ```python
51
+ from spotifywebapi.configuration import Environment
52
+ from spotifywebapi.http.auth.o_auth_2 import AuthorizationCodeAuthCredentials
53
+ from spotifywebapi.models.o_auth_scope_enum import OAuthScopeEnum
54
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
55
+
56
+ client = SpotifywebapiClient(
57
+ authorization_code_auth_credentials=AuthorizationCodeAuthCredentials(
58
+ o_auth_client_id='OAuthClientId',
59
+ o_auth_client_secret='OAuthClientSecret',
60
+ o_auth_redirect_uri='OAuthRedirectUri',
61
+ o_auth_scopes=[
62
+ OAuthScopeEnum.APP_REMOTE_CONTROL,
63
+ OAuthScopeEnum.PLAYLIST_READ_PRIVATE
64
+ ]
65
+ ),
66
+ environment=Environment.PRODUCTION
67
+ )
68
+ ```
69
+
70
+ ### Environment-Based Client Initialization
71
+
72
+ ```python
73
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
74
+
75
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
76
+ client = SpotifywebapiClient.from_environment(dotenv_path='/path/to/.env')
77
+ ```
78
+
79
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
80
+
81
+ ## Environments
82
+
83
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
84
+
85
+ ### Fields
86
+
87
+ | Name | Description |
88
+ | --- | --- |
89
+ | PRODUCTION | **Default** |
90
+
91
+ ## Authorization
92
+
93
+ This API uses the following authentication schemes.
94
+
95
+ * [`oauth_2_0 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
96
+
97
+ ## List of APIs
98
+
99
+ * [Albums](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/albums.md)
100
+ * [Artists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/artists.md)
101
+ * [Audiobooks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/audiobooks.md)
102
+ * [Categories](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/categories.md)
103
+ * [Chapters](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/chapters.md)
104
+ * [Episodes](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/episodes.md)
105
+ * [Genres](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/genres.md)
106
+ * [Markets](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/markets.md)
107
+ * [Player](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/player.md)
108
+ * [Playlists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/playlists.md)
109
+ * [Search](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/search.md)
110
+ * [Shows](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/shows.md)
111
+ * [Tracks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/tracks.md)
112
+ * [Users](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/users.md)
113
+
114
+ ## SDK Infrastructure
115
+
116
+ ### Configuration
117
+
118
+ * [ProxySettings](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md)
119
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
120
+
121
+ ### HTTP
122
+
123
+ * [HttpResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-response.md)
124
+ * [HttpRequest](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-request.md)
125
+
126
+ ### Utilities
127
+
128
+ * [ApiResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-response.md)
129
+ * [ApiHelper](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-helper.md)
130
+ * [HttpDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-date-time.md)
131
+ * [RFC3339DateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
132
+ * [UnixDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/unix-date-time.md)
133
+
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+ [project]
5
+ name = "spotify-apimatic-sdk"
6
+ description = "spotify api sdk"
7
+ version = "1.0.0"
8
+ readme = "README.md"
9
+ keywords = []
10
+ dependencies = ["apimatic-core~=0.2.0, >= 0.2.24", "apimatic-core-interfaces~=0.1.0, >= 0.1.8", "apimatic-requests-client-adapter~=0.1.0, >= 0.1.10", "python-dotenv>=0.21, <2.0"]
11
+ classifiers = []
12
+ requires-python = ">=3.7"
13
+ [[project.authors]]
14
+ name = "Muhammad Rafay"
15
+ email = "muhammad.rafay@apimatic.io"
16
+
17
+ [project.urls]
18
+ Documentation = "https://developer.spotify.com/documentation/web-api"
19
+ [project.optional-dependencies]
20
+ testutils = ["pytest>=7.2.2"]
21
+ [tool]
22
+ [tool.setuptools]
23
+ [tool.setuptools.packages]
24
+ [tool.setuptools.packages.find]
25
+ exclude = ["tests", "tests.*"]
@@ -0,0 +1,8 @@
1
+ [meta-data]
2
+ license_files =
3
+ LICENSE
4
+
5
+ [egg_info]
6
+ tag_build =
7
+ tag_date = 0
8
+
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.4
2
+ Name: spotify-apimatic-sdk
3
+ Version: 1.0.0
4
+ Summary: spotify api sdk
5
+ Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
+ Project-URL: Documentation, https://developer.spotify.com/documentation/web-api
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
11
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
12
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
13
+ Requires-Dist: python-dotenv<2.0,>=0.21
14
+ Provides-Extra: testutils
15
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
16
+ Dynamic: license-file
17
+
18
+
19
+ # Getting Started with Spotify Web API
20
+
21
+ ## Introduction
22
+
23
+ You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more. Browse our available Web API endpoints using the sidebar at left, or via the navigation bar on top of this page on smaller screens.
24
+
25
+ In order to make successful Web API requests your app will need a valid access token. One can be obtained through <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">OAuth 2.0</a>.
26
+
27
+ The base URI for all Web API requests is `https://api.spotify.com/v1`.
28
+
29
+ Need help? See our <a href="https://developer.spotify.com/documentation/web-api/guides/">Web API guides</a> for more information, or visit the <a href="https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer">Spotify for Developers community forum</a> to ask questions and connect with other developers.
30
+
31
+ ## Install the Package
32
+
33
+ The package is compatible with Python versions `3.7+`.
34
+ Install the package from PyPi using the following pip command:
35
+
36
+ ```bash
37
+ pip install spotify-apimatic-sdk==1.0.0
38
+ ```
39
+
40
+ You can also view the package at:
41
+ https://pypi.python.org/pypi/spotify-apimatic-sdk/1.0.0
42
+
43
+ ## Initialize the API Client
44
+
45
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/client.md)
46
+
47
+ The following parameters are configurable for the API Client:
48
+
49
+ | Parameter | Type | Description |
50
+ | --- | --- | --- |
51
+ | environment | [`Environment`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
52
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
53
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
54
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
55
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
56
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
57
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
58
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
59
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
60
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
61
+ | authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
62
+
63
+ The API client can be initialized as follows:
64
+
65
+ ### Code-Based Client Initialization
66
+
67
+ ```python
68
+ from spotifywebapi.configuration import Environment
69
+ from spotifywebapi.http.auth.o_auth_2 import AuthorizationCodeAuthCredentials
70
+ from spotifywebapi.models.o_auth_scope_enum import OAuthScopeEnum
71
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
72
+
73
+ client = SpotifywebapiClient(
74
+ authorization_code_auth_credentials=AuthorizationCodeAuthCredentials(
75
+ o_auth_client_id='OAuthClientId',
76
+ o_auth_client_secret='OAuthClientSecret',
77
+ o_auth_redirect_uri='OAuthRedirectUri',
78
+ o_auth_scopes=[
79
+ OAuthScopeEnum.APP_REMOTE_CONTROL,
80
+ OAuthScopeEnum.PLAYLIST_READ_PRIVATE
81
+ ]
82
+ ),
83
+ environment=Environment.PRODUCTION
84
+ )
85
+ ```
86
+
87
+ ### Environment-Based Client Initialization
88
+
89
+ ```python
90
+ from spotifywebapi.spotifywebapi_client import SpotifywebapiClient
91
+
92
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
93
+ client = SpotifywebapiClient.from_environment(dotenv_path='/path/to/.env')
94
+ ```
95
+
96
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
97
+
98
+ ## Environments
99
+
100
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
101
+
102
+ ### Fields
103
+
104
+ | Name | Description |
105
+ | --- | --- |
106
+ | PRODUCTION | **Default** |
107
+
108
+ ## Authorization
109
+
110
+ This API uses the following authentication schemes.
111
+
112
+ * [`oauth_2_0 (OAuth 2 Authorization Code Grant)`](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/auth/oauth-2-authorization-code-grant.md)
113
+
114
+ ## List of APIs
115
+
116
+ * [Albums](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/albums.md)
117
+ * [Artists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/artists.md)
118
+ * [Audiobooks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/audiobooks.md)
119
+ * [Categories](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/categories.md)
120
+ * [Chapters](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/chapters.md)
121
+ * [Episodes](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/episodes.md)
122
+ * [Genres](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/genres.md)
123
+ * [Markets](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/markets.md)
124
+ * [Player](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/player.md)
125
+ * [Playlists](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/playlists.md)
126
+ * [Search](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/search.md)
127
+ * [Shows](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/shows.md)
128
+ * [Tracks](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/tracks.md)
129
+ * [Users](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/controllers/users.md)
130
+
131
+ ## SDK Infrastructure
132
+
133
+ ### Configuration
134
+
135
+ * [ProxySettings](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/proxy-settings.md)
136
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
137
+
138
+ ### HTTP
139
+
140
+ * [HttpResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-response.md)
141
+ * [HttpRequest](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-request.md)
142
+
143
+ ### Utilities
144
+
145
+ * [ApiResponse](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-response.md)
146
+ * [ApiHelper](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/api-helper.md)
147
+ * [HttpDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/http-date-time.md)
148
+ * [RFC3339DateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
149
+ * [UnixDateTime](https://www.github.com/sdks-io/spotify-apimatic-python-sdk/tree/1.0.0/doc/unix-date-time.md)
150
+