ShareShortcuts

API key

It’s a YouTube video maker

cd2019
Fork “API key”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so cd2019 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
37K
Saved
2
Actions
25
Category
Photos and videos
Version
1.0
Language
EN

Preview

It’s a YouTube video maker

What's New

Version 1.0

First release

Version History
1.0 Nov 8, 2022

First release

What it does

25 actions
  1. Comment
    Sauvegarde clef API dans iCloud by @MissK Mod by @Rickscloud
  2. Choose from Menu
  3. Choose from Menu
    View Keys
  4. Get File
  5. Repeat with Each
  6. Get Details of Files
  7. Set Variable
    Name
  8. Text
  9. Combine Text
  10. Set Variable
    Combined
  11. Replace Text
  12. Quick Look
  13. Choose from Menu
    Add Key
  14. Ask for Input
    API name
  15. Text
  16. Get File
  17. If
  18. Create Folder
  19. Save File
  20. If
  21. Set Variable
    NomFichier
  22. Ask for Input
    API key
  23. Set Variable
    Key
  24. Append to Text File
  25. Choose from Menu
    Exit

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/text'
#include 'actions/documents'
#define color taupe
#define glyph key

/*
Sauvegarde clef API dans iCloud by @MissK
Mod by @Rickscloud
*/

const RepeatResults = menu nil {
item "View Keys":
	const File = getFileFromFolder(, "API_Keys", true)
	for _ in File {
		getFileDetail(nil, "Name")
		@Name
	}
	joinText(RepeatResults)
	@Combined
	const UpdatedText = replaceText("ApiKey_", "•", @Combined, false)
	quicklook(UpdatedText)
item "Add Key":
	prompt("API name")
	const File1 = getFile("API_Keys/ApiKey_{}.txt", false)
	if !File1 {
		createFolder("API_Keys")
		saveFile("API_Keys/ApiKey_{}.txt", File1, true)
	} else {
	}
	@NomFichier
	prompt("API key")
	@Key
	appendToFile("API_Keys/{@NomFichier}", @Key)
item "Exit":
}
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

See All
Advertisement