We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93030bf commit d4f6ac6Copy full SHA for d4f6ac6
app/spotify/service.py
@@ -93,3 +93,19 @@ def get_devices_count(self) -> int:
93
def __get_devices_from_api(self) -> list[Device]:
94
devices_json = self.__api.devices()["devices"]
95
return [Device(**device) for device in devices_json]
96
+
97
98
+if __name__ == "__main__":
99
+ import dotenv
100
+ from app.container import Container
101
102
+ dotenv.load_dotenv()
103
+ container = Container()
104
105
+ SpotifyService(
106
+ client_id=container.config.spotify.client_id(),
107
+ client_secret=container.config.spotify.client_secret(),
108
+ redirect_uri=container.config.spotify.redirect_uri()
109
+ )
110
111
+ print(".cache file created")
0 commit comments