Mit dem iPhone scannen, um zu installieren
Tell Siri to play a specific track in Spotify
Neue Funktionen
Version 1.0
First release
Was er macht
18 Aktionen-
Dictate Text
-
Set VariableSearchText
-
Count
-
If
-
URLhttp://spotify-car-play.herokuapp.com/search/…/track
-
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
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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}/track")
const ContentsOfURL = downloadURL()
const Dictionary = getDictionary(ContentsOfURL)
const DictionaryValue = getValue(Dictionary, "tracks")
const ItemFromList = getFirstItem(DictionaryValue)
const Dictionary1 = getDictionary(ItemFromList)
@TargetUri = Dictionary1['uri']
const Count1 = count(@TargetUri, "Characters")
if Count1 > 0 {
url()
openCustomXCallbackURL()
} else {
}
} else {
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von jw3333
Das gefällt dir vielleicht auch
Werbung