Replies: 1 comment
-
There is no official documentation or schema for this. The format is designed be hackable and reverse-engineerable though. I recommend to just create an export and inspect the JSON file within. Much of the fields should be guessable what they do. Some useful bits of information though:
Ultimately, the app needs to be able to read it, so there's only so much protection you can do. The recommended approach is to make use of HTTPS, such that your file is encrypted in transit, and to configure basic auth with a secure username and password, such that only those who know the credentials can access your file. Beyond this, the app doesn't offer any protection mechanisms.
Sort of. When you save your changes in the web editor, they get pushed to a file on the server. You can technically access this file using your browser or a script. The URL is https://http-shortcuts.rmy.ch/editor/api/files/, and it requires basic auth using your device ID as the username and the password that you used to access the web editor. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, thanks to the dev for this awesome app.
Objective
I am planning a pretty advanced flow, where I can commit the desired
shortcuts.json(not as is- maybe some code that generates one) file and then the app on my phone pulls the file from the server through the automatic import feature.Process
Working back from the solution to the initial steps:
shortcuts.jsoninside with properties like:version,categoriesandvariables). Question: Is there a predefined schema for the shortcuts.jsonshortcuts.jsonfile: most of my shortcuts use the custom scripting feature, so writing them on pc, then pulling them on phone, then exporting them back to mywebsite-project, commiting to git, then deoploying; is quite cumbersome to say the least.exported-shortcuts.jsonfile and understanding what each property is for) where I can edit the json properties (via- code or manually) and then construct the shorcuts.json file, and somehow validating the file through a schema of sorts so I know before hand if there is a problem with the file somewhere.Question: If I go with this approach, is there a way to obfuscate (encode is a better word) some of my session tokens used by requests, so it isn't readable by all?
Question: Can the webeditor export a json file?
Hey, I tried my best explaining my problem and am willing to answer more questions about the issue. Cheers <3
Beta Was this translation helpful? Give feedback.
All reactions