apple-music-token-generator icon indicating copy to clipboard operation
apple-music-token-generator copied to clipboard

Results 11 apple-music-token-generator issues
Sort by recently updated
recently updated
newest added

Is there a way to generate a token that lasts forever? No need to regenrate one every once in a while? We are using this in a front end app.

I thought it would be neat if instead of changing the code and then running the script, we could just pip install it and then use it as a cli...

I've successfully created a token, but any request just ends with 500. For example: ``` ➜ applemusic curl -v -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXmodifiedsifQ.eyJpc3MiOiI5U1g3SDJYUzlLIiwiZXhwIjoxNjUxMjQzMzQzLCJpYXQiOjE2MzU0NjYzNDN9.uxnoh6RG8YLEhHHTa92AomLUmc7ynEvgEisGfLEdoyGN5RxY0pmstEGY5v-VhIXm39-HyclneJwobcBQdItvag' "https://api.music.apple.com/v1/catalog/ru/songs/203709340" * Trying 104.103.64.25... * TCP_NODELAY set...

Both python2 and 3 are supported.

print "curl -v -H 'Authorization: Bearer %s' \"https://api.music.apple.com/v1/catalog/us/artists/36954\" " % (token) SyntaxError: invalid syntax

When I execute this command, will show: ```shell Traceback (most recent call last): File "music_token.py", line 6, in import jwt ImportError: No module named jwt ``` I am sure ,...

Is it possible to modify the script to generate music user token as well? Thanks.

I am getting the following error while requesting User Token - Error Domain=SKErrorDomain Code=7 "(null)" UserInfo={NSUnderlyingError=0x2804f08d0 {Error Domain=SSErrorDomain Code=109 "(null)" UserInfo={NSUnderlyingError=0x2804f0390 {Error Domain=SSErrorDomain Code=109 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot...

run python music_token.py result Traceback (most recent call last): File "music_token.py", line 36, in token = jwt.encode(payload, secret, algorithm=alg, headers=headers) File "/Library/Python/2.7/site-packages/jwt/api_jwt.py", line 65, in encode json_payload, key, algorithm, headers,...