sym.sdk.integrations.dangerous.http.request

sym.sdk.integrations.dangerous.http.request(url: str, method: Literal[GET, POST, PUT, PATCH, DELETE], body: Optional[Dict] = None)

Makes an HTTP request to the given URL with the specified method and body.

If the response is valid JSON, a dictionary is returned, otherwise, a string is returned.