Closed Mouhamedtec closed 3 months ago
I like what you did with the inputs in order to construct a dict
with it, however we are currently working on adding a json
input node where you can pass a json
directly, after that we will work on adding a custom_api_call
utility function that can make all http
requests (post, put, get ...) and return a json
as well. You are the first person from the community to contribute to Hyko and we really appreciate that ! π₯
However I have to close this pr in favor of future feature inchalah ! Thank you ππΌ
It's greatly appreciated that you and your team are developing this feature. I enjoy using Hyko and am pleased to contribute proposals for its enhancement.
61
Utils Name:
http_utils
Function Name:
post
Purpose: The
post
function is responsible for making an HTTP request to a specified URL using thehttpx
library. It sends form data (input values) to the server and handles the response.Function Signature:
inputs
: An instance of theInputs
class, containing input field names and corresponding values.params
: An instance of theParams
class, containing the URL and an optional bearer token.Outputs
class, indicating whether the task was successful.Steps Performed:
httpx.AsyncClient()
.Outputs
withresponse_success
set toTrue
.APICallError
with the response status code and details.