HTTP-Shortcuts icon indicating copy to clipboard operation
HTTP-Shortcuts copied to clipboard

File content as variable

Open brunetton opened this issue 6 months ago • 1 comments

Just discovered this (amazing!) project and I'm very excited to see what it can achieve 🤩

But, very related to #102, I'm afraid I need to be able to access a specific file from a variable.

Context

I'm trying to find a way to update the content of a HackMD note using HackMD API. The new content of the online note will be the content of a (predefined specific) file.

Problem detail

Following API documentation, to update a note there I need to make a request with a json body like this:

{
   "content": "{file_content}"
}

Where file_content is the content of a particular file (always the same file).

Conclusion

As far as I see, the solution proposed by the file content mechanism is not sufficient to cover my use case, as sending the file content as request body won't do the trick unfortunately, as I need to pass its content in the request's json body.

I hope that I missed something !

Thanks very much for this excellent app (again)

brunetton avatar Jan 05 '24 00:01 brunetton