You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @raycast.description Use this script command to configure your @duck.com authorizationID
# @raycast.author Rediwed
# @raycast.authorURL github.com/Rediwed
on run argv
set prefix to do shell script "curl -X POST https://quack.duckduckgo.com/api/email/addresses --header 'Authorization: Bearer " & (item 1 of argv) & "'"
if text 3 through 9 of prefix is "address" then
setAuthorizationID(item 1 of argv)
else
tell me to error "Could not configure authorizationID. Duck.com API result: " & prefix