Escaneie com o iPhone para instalar
Simple shortcut to get today's word for the NY Times' Wordle Game. Use this as a last resort if you really give up :)
Novidades
Versão 1.0
First release
O que ele faz
14 ações-
Date
-
Format Date
-
Split Text
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get Contents of URLhttps://www.nytimes.com/svc/wordle/v2/…-…-….json
-
Get Dictionary from Input
-
Get Dictionary Value
-
Get Dictionary Value
-
Show AlertWordle - …
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#include 'actions/web'
#include 'actions/calendar'
#define color violet
#define glyph closedBook
currentDate()
const FormattedDate = formatTimestamp(, "Custom", "None", "dd/MM/yyyy")
const SplitText = splitText(FormattedDate, "/")
getListItem(SplitText, 0)
@date
getListItem(SplitText, 2)
@month
getListItem(SplitText, 3)
@year
const ContentsOfURL = downloadURL("https://www.nytimes.com/svc/wordle/v2/{@year}-{@month}-{@date}.json")
const Dictionary = getDictionary(ContentsOfURL)
alert("Today's word is \"{}\" by {}", "Wordle - {}")
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Você também pode gostar
Publicidade