Scan with your iPhone to install
Tell Siri to play a
What's New
Version 1.0
First release
What it does
18 actions-
Dictate Text
-
Set VariableSearchText
-
Count
-
If
-
URLhttp://spotify-car-play.herokuapp.com/search/…/playlist
-
Get Contents of URL…
-
Get Dictionary from Input
-
Get Dictionary Value
-
Get Item from List
-
Get Dictionary from Input
-
Get Dictionary Value
-
Set VariableTargetUri
-
Count
-
If
-
URL…
-
Open X-Callback URL
-
If
-
If
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/web'
#include 'actions/text'
#define color teal
listen(, "en-US")
@SearchText
const Count = count(@SearchText, "Characters")
if Count > 0 {
url("http://spotify-car-play.herokuapp.com/search/{@SearchText}/playlist")
const ContentsOfURL = downloadURL()
const Dictionary = getDictionary(ContentsOfURL)
const DictionaryValue = getValue(Dictionary, "playlists")
const ItemFromList = getListItem(DictionaryValue, 0)
const Dictionary1 = getDictionary(ItemFromList)
@TargetUri = Dictionary1['uri']
const Count1 = count(@TargetUri, "Characters")
if Count1 > 0 {
url()
openCustomXCallbackURL()
} else {
}
} else {
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by jw3333
You Might Also Like
Advertisement