Make HTTP requests from within templates #33

Open
opened 2025-03-27 17:09:45 -06:00 by sashakoshka · 1 comment
Owner

Would be nice for interacting with APIs.

Would be nice for interacting with APIs.
Author
Owner

Something like:

{{httpRequest "GET" "https://example.com/search?q=potato"}}

For sending custom headers we could do:

{{httpRequest "GET" "https://example.com/search?q=potato" (dict "Accept" "text/plain")}}

For sending post data:

{{httpRequest "GET" "https://example.com/upload" (dict "Content-Type" "text/plain") $fileContent}}
Something like: ``` {{httpRequest "GET" "https://example.com/search?q=potato"}} ``` For sending custom headers we could do: ``` {{httpRequest "GET" "https://example.com/search?q=potato" (dict "Accept" "text/plain")}} ``` For sending post data: ``` {{httpRequest "GET" "https://example.com/upload" (dict "Content-Type" "text/plain") $fileContent}} ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sashakoshka/step#33
No description provided.