Waboodoo / HTTP-Shortcuts

Android app to create home screen shortcuts that trigger arbitrary HTTP requests
https://http-shortcuts.rmy.ch
MIT License
1.17k stars 113 forks source link

is there a way to import multiple choice selection option? #403

Closed braboobssiere closed 10 months ago

braboobssiere commented 10 months ago

preferably from a json file (there's 100+ options so i can't do it manually)

Waboodoo commented 10 months ago

You could try the following:

  1. Create a dummy multiple choice with a few values
  2. Export the shortcut that uses the multiple choice, via the context menu -> "Export"
  3. The file you get this way is a zip file, unzip it and find the JSON file inside.
  4. In this JSON file, look for your dummy multiple choice to set how its structure works.
  5. Copy in your own options, adjusting them to match the structure of the dummy values. If you have many options I recommend doing this with some script or other automation. You'll probably need to set an ID for each option, for this you can just generate a UUID.
  6. Save the JSON file and place it into a zip file
  7. In the app, import this file by going to "Import / Export" in the main menu
braboobssiere commented 10 months ago

I'll try it, thank you