Login About Gallery
Play Spotify
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
COMMENT
‎refresh_token ⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
TEXT
‎51a5f1796fcd49639789bb829b1aa984
VARIABLES
‎Set variable ‎clientId ‎to ‎Text
TEXT
‎019798096abc4ef0ac6b1c30d31173ec
VARIABLES
‎Set variable ‎clientSecret ‎to ‎Text
SCRIPTING
‎If ‎File ‎does not have any value
DOCUMENTS
‎Create Folder
Service
‎iCloud Drive
Path
‎/Shortcuts/Spotify/
TEXT
‎ugc-image-upload user-read-playback-state playlist-read-collaborative user-modify-playback-state user-read-private playlist-modify-public user-library-modify user-top-read playlist-read-private user-follow-read user-read-recently-played playlist-modify-private user-follow-modify user-library-read
DOCUMENTS
‎Replace ‎\n ‎with ‎%20 ‎in ‎Text
Case Sensitive
Regular Expression
URL
‎https://tecuts.com/spotify-authorization/
SCRIPTING
‎URL ‎Encode ‎URL
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
URL
‎https://accounts.spotify.com/authorize?client_id= ‎clientId ‎&response_type=code&redirect_uri= ‎URL Encoded Text ‎&scope= ‎Updated Text
SAFARI
‎Show web page at ‎URL
Enter Safari Reader
SHARING
‎Get clipboard
URL
‎https://accounts.spotify.com/api/token
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get dictionary from ‎Contents of URL
SCRIPTING
‎Get ‎Value ‎for ‎refresh_token ‎in ‎Dictionary
SCRIPTING
‎If ‎Dictionary Value ‎has any value
DOCUMENTS
‎Save ‎Dictionary Value
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎/Shortcuts/Spotify/key.txt
Overwrite If File Exists
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎Generation failed
Title
‎Generation failed
Show Cancel Button
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
Select Multiple
DOCUMENTS
‎Get text from ‎File
VARIABLES
‎Set variable ‎refresh token ‎to ‎Text
COMMENT
‎Get access token
URL
‎https://accounts.spotify.com/api/token
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get ‎Value ‎for ‎access_token ‎in ‎Contents of URL
VARIABLES
‎Set variable ‎access_token ‎to ‎Dictionary Value
COMMENT
‎Enter your the spotify URL below. If leave blank, it will play your recent played tracks.
URL
‎apple.com
SCRIPTING
‎If ‎URL ‎has any value
TEXT
‎Match ‎https:\/\/open\.spotify\.com\/(playlist|album|artist)\/([a-zA-Z0-9]+)(.*)$ ‎in ‎URL
Case Sensitive
TEXT
‎Get ‎Group At Index ‎1 ‎in ‎Matches
TEXT
‎Get ‎Group At Index ‎2 ‎in ‎Matches
URL
‎spotify: ‎Text ‎: ‎Text
VARIABLES
‎Set variable ‎URI ‎to ‎URL
SCRIPTING
‎Otherwise
COMMENT
‎Get last played Object
URL
‎https://api.spotify.com/v1/me/player/recently-played?limit=1
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get dictionary from ‎Contents of URL
SCRIPTING
‎Get ‎Value ‎for ‎items ‎in ‎Dictionary
SCRIPTING
‎Get ‎Value ‎for ‎context ‎in ‎Dictionary Value
SCRIPTING
‎If ‎Dictionary Value ‎contains ‎spotify
SCRIPTING
‎Get ‎Value ‎for ‎uri ‎in ‎Dictionary Value
COMMENT
‎Workaround for current WebAPI bug The WebAPI will return a Playlist_v2 URI but the play endpoint can only handle v1 URIs
SCRIPTING
‎If ‎Dictionary Value ‎contains ‎playlist
SCRIPTING
‎Get ‎Value ‎for ‎href ‎in ‎Dictionary Value
NETWORK
‎Get contents of ‎Dictionary Value
‎Options Under Construction
SCRIPTING
‎Get dictionary from ‎Contents of URL
SCRIPTING
‎Get ‎Value ‎for ‎uri ‎in ‎Dictionary
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎URI ‎to ‎If Result
SCRIPTING
‎Otherwise
SCRIPTING
‎Get ‎Value ‎for ‎uri ‎in ‎Dictionary Value
VARIABLES
‎Set variable ‎URI ‎to ‎Dictionary Value
SCRIPTING
‎End If
SCRIPTING
‎End If
COMMENT
‎Enter your prefered device ID below
TEXT
‎Text
SCRIPTING
‎If ‎Text ‎has any value
VARIABLES
‎Set variable ‎deviceID ‎to ‎Text
SCRIPTING
‎Otherwise
COMMENT
‎Get device id
URL
‎https://api.spotify.com/v1/me/player/devices
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get dictionary from ‎Contents of URL
SCRIPTING
‎Get ‎Value ‎for ‎devices ‎in ‎Dictionary
SCRIPTING
‎Count ‎Items ‎in ‎Dictionary Value
SCRIPTING
‎If ‎Count ‎is less than ‎1
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
SCRIPTING
‎Otherwise
SCRIPTING
‎If ‎Count ‎is ‎1
SCRIPTING
‎Get ‎Value ‎for ‎id ‎in ‎Dictionary Value
SCRIPTING
‎Otherwise
SCRIPTING
‎Repeat with each item in ‎Dictionary Value
SCRIPTING
‎Get ‎Value ‎for ‎name ‎in ‎Repeat Item
SCRIPTING
‎Get ‎Value ‎for ‎id ‎in ‎Repeat Item
SCRIPTING
‎Set name of ‎Dictionary Value ‎to ‎Dictionary Value
SCRIPTING
‎End Repeat
SCRIPTING
‎Choose from ‎Repeat Results
Prompt
‎optional
Select Multiple
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎deviceID ‎to ‎If Result
SCRIPTING
‎End If
SCRIPTING
‎End If
COMMENT
‎Play playlist
URL
‎https://api.spotify.com/v1/me/player/play?device_id= ‎deviceID
NETWORK
‎Get contents of ‎URL
‎Options Under Construction

Showcuts

Magic Vars

Screenshot

Submitted Anonymously over a year ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0