Scan med din iPhone for at installere
Tell Siri to play a specific track in Spotify
Nyheder
Version 1.0
First release
Hvad den gør
18 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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 {
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra jw3333
Du vil måske også kunne lide
Annonce