Scanne avec ton iPhone pour installer
Tell Siri to play a specific track in Spotify
Nouveautés
Version 1.0
First release
Ce qu’il fait
18 actions-
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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 {
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de jw3333
Ça pourrait aussi te plaire
Publicité