TEXT
true

Text
DICTIONARY

Dictionary
SCRIPTING
Get
Value
for
version
in
Dictionary

Dictionary Value
VARIABLES
Set variable
clientVersion
to
Dictionary Value
URL
https://faas-blr1-8177d592.doserverless.co/api/v1/web/fn-739c49e1-de29-4e2f-883c-16b955b6e6e8

URL
VARIABLES
Set variable
Endpoint-url
to
URL
TEXT
API-KEY

Text
VARIABLES
Set variable
apikey
to
Text
SCRIPTING
If
apikey
is
API-KEY
SCRIPTING
Show alert
400 - Invalid API Key
Title
400 - Invalid API Key
SAFARI
Open
https://copilot.schooltool.io/dashboard/account
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
NETWORK
Get contents of
Endpoint-url
/package/version
Options Under Construction

Contents of URL
SCRIPTING
Get dictionary from
Contents of URL

Dictionary
SCRIPTING
Get
Value
for
version
in
Dictionary

Dictionary Value
NUMBER
Dictionary Value

Number
VARIABLES
Set variable
serverVersion
to
Number
SCRIPTING
If
serverVersion
is greater than
clientVersion
SCRIPTING
Get
Value
for
changes
in
Dictionary

Dictionary Value
SCRIPTING
Get dictionary from
Dictionary Value

Dictionary
SCRIPTING
Get
Value
for
1
in
Dictionary

Dictionary Value
SCRIPTING
Get
Value
for
2
in
Dictionary

Dictionary Value
TEXT
v
Dictionary Value
-> v
clientVersion
๐ It's time to update! ๐
Here's what was changed:
serverVersion

Text
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Update ๐

Menu Result
SCRIPTING
Get
Value
for
shortcut-data
in
Dictionary

Dictionary Value
SCRIPTING
Get
Value
for
shortcut-url
in
Dictionary

Dictionary Value
SCRIPTING
Get the
System Version

Device Name
NUMBER
System Version

Number
SCRIPTING
If
Number
is less than
14
SAFARI
Open
Dictionary Value
SCRIPTING
Otherwise
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Standard update

Menu Result
URL
Dictionary Value

URL
SAFARI
Open
URL
SCRIPTING
Open Shotcut File (Beta)

Menu Result
SCRIPTING
Decode
Dictionary Value
with base64

Base64 Encoded
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
Later ๐

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
If
Text
is
true
DOCUMENTS

Dictated Text
SCRIPTING
Otherwise
SCRIPTING

Provided Input
SCRIPTING
End If

If Result
SCRIPTING
Mode
If Result
with base64

Base64 Encoded
VARIABLES
Set variable
Msg-fuiyo!
to
Base64 Encoded
NETWORK
Get contents of
Endpoint-url
/package/query
Options Under Construction

Contents of URL
TEXT
Contents of URL

Text
DOCUMENTS
Speak
Text
Language
English (United States)
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Ok!

Menu Result
SCRIPTING
Exit shortcut with
Result
SCRIPTING
Copy to clipboard

Menu Result
SHARING
Copy
Text
to clipboard
SCRIPTING
End Menu

Menu Result