spotifywebapiPython 1.0.78__py3-none-any.whl → 1.0.80__py3-none-any.whl
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.
Potentially problematic release.
This version of spotifywebapiPython might be problematic. Click here for more details.
- {spotifywebapiPython-1.0.78.dist-info → spotifywebapiPython-1.0.80.dist-info}/METADATA +1 -1
- {spotifywebapiPython-1.0.78.dist-info → spotifywebapiPython-1.0.80.dist-info}/RECORD +25 -25
- spotifywebapipython/const.py +6 -1
- spotifywebapipython/docs/__init__.html +18 -3
- spotifywebapipython/docs/index.html +2 -2
- spotifywebapipython/docs/search.js +1 -1
- spotifywebapipython/docs/spotifywebapiPython/const.html +20 -3
- spotifywebapipython/docs/spotifywebapiPython/saappmessages.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/sautils.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyapierror.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyapimessage.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyauthtoken.html +38 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifyclient.html +168 -72
- spotifywebapipython/docs/spotifywebapiPython/spotifydiscovery.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapiauthenticationerror.html +2 -2
- spotifywebapipython/docs/spotifywebapiPython/spotifywebapierror.html +2 -2
- spotifywebapipython/models/spotifyconnectdevice.py +60 -1
- spotifywebapipython/models/spotifyconnectdevices.py +2 -0
- spotifywebapipython/spotifyauthtoken.py +26 -0
- spotifywebapipython/spotifyclient.py +440 -195
- spotifywebapipython/zeroconfapi/zeroconfconnect.py +52 -46
- spotifywebapipython/zeroconfapi/zeroconfgetinfoalias.py +8 -0
- {spotifywebapiPython-1.0.78.dist-info → spotifywebapiPython-1.0.80.dist-info}/LICENSE +0 -0
- {spotifywebapiPython-1.0.78.dist-info → spotifywebapiPython-1.0.80.dist-info}/WHEEL +0 -0
- {spotifywebapiPython-1.0.78.dist-info → spotifywebapiPython-1.0.80.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# external package imports.
|
|
2
2
|
from datetime import datetime, timedelta
|
|
3
|
+
from pprint import pformat
|
|
3
4
|
import time
|
|
4
5
|
|
|
5
6
|
# our package imports.
|
|
@@ -221,6 +222,31 @@ class SpotifyAuthToken:
|
|
|
221
222
|
return self._TokenType
|
|
222
223
|
|
|
223
224
|
|
|
225
|
+
def ToDictionary(self) -> dict:
|
|
226
|
+
"""
|
|
227
|
+
Returns a dictionary representation of the class.
|
|
228
|
+
"""
|
|
229
|
+
result:dict = \
|
|
230
|
+
{
|
|
231
|
+
'access_token': self._AccessToken,
|
|
232
|
+
'expires_at': self._ExpiresAt,
|
|
233
|
+
'expires_in': self._ExpiresIn,
|
|
234
|
+
'refresh_token': self._RefreshToken,
|
|
235
|
+
'scope': self.Scopes,
|
|
236
|
+
'token_type': self._TokenType,
|
|
237
|
+
}
|
|
238
|
+
return result
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def ToDictionaryString(self) -> dict:
|
|
242
|
+
"""
|
|
243
|
+
Returns a dictionary string representation of the class.
|
|
244
|
+
"""
|
|
245
|
+
oDict:dict = self.ToDictionary()
|
|
246
|
+
result:str = pformat(oDict,indent=2,width=132,sort_dicts=False)
|
|
247
|
+
return result
|
|
248
|
+
|
|
249
|
+
|
|
224
250
|
def ToString(self) -> str:
|
|
225
251
|
"""
|
|
226
252
|
Returns a displayable string representation of the class.
|