Scan with your iPhone to install
Simple shortcut to get today's word for the NY Times' Wordle Game. Use this as a last resort if you really give up :)
What's New
Version 1.0
First release
What it does
14 actions-
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 - …
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/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 - {}")
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
You Might Also Like
Advertisement