Skip to content

HTTP OAuth1


General Information:

Type ID Module Category
4 httplib api

OAuth1ConnectionParams

Parameters:

  • client_key : str

Input Parameters:

Field Type Required Description Default value Examples
url HttpUrl Service endpoint full URL PydanticUndefined https://api.example.com/endpoint
headers Optional[dict[str, str]] Additional HTTP headers to include in the request None {"Authorization": "Bearer token", "Content-Type": "application/json"}
method Literal[GET, POST, PUT, DELETE, PATCH] HTTP method to use GET POST
body Optional[dict[str, Any]] JSON body of the request None {"key": "value"}
verify_ssl bool Whether to validate the SSL certificate True True
client_key str OAuth1 Client Key PydanticUndefined client_key_value
client_secret str OAuth1 Client Secret PydanticUndefined client_secret_value
resource_owner_key str OAuth1 resource owner key PydanticUndefined resource_key_value
resource_owner_secret str OAuth1 resource owner secret PydanticUndefined resource_secret_value

Example:

{
  "url": "https://api.example.com/oauth1",
  "client_key": "client_key_value",
  "client_secret": "client_secret_value",
  "resource_owner_key": "resource_key_value",
  "resource_owner_secret": "resource_secret_value",
  "headers": {},
  "method": "GET",
  "body": null,
  "verify_ssl": true
}

Notes:

OAuth1 requires signing requests with HMAC-SHA1.