BP Function: HTTP Request (with bearer token)
C++ Impl | UHTTPRequestAction |
---|
This is equivalent to the basic HTTP Request, but it will automatically add the Authorization
header
required for requests with a bearer token (e.g., the requests to the Patreon API). It's a small convenience compared to
always including this header in your requests.
Inputs
-
URI
String
URI to request.
-
Verb
String
HTTP method, e.g.
GET
,POST
,PUT
, etc. -
Payload
String
Additional payload data to include with the request. How this is handled depends on
Verb
.For example, if
Verb
isGET
, then the payload will be appended to the URI as URL params. If theVerb
isPOST
, the payload will be included in the request body. -
Access Token
String
The access token to use for request authorization, e.g. the
Access Token
from API Token Info. -
Headers
Map of
Strings
toStrings
Optional. Any entries included here will be added to the headers of the request. Including additional headers here will not affect the
Authorization
header automatically added to the request.
Outputs
-
Main Execution Pin (at the top)
Execution will immediately continue from this pin while the authentication process continues in the background. Do not use execution flowing from this pin to check for the results, they aren't ready yet!
-
Async Action
This is a reference to the action running in the background. You can use this to cancel the request if you decide you actually don't need the results before it has completed.
-
On Complete
When the request has completed successfully, execution will flow from this pin.
-
On Fail
If the authentication process fails for any reason, execution will flow from this pin.
-
Response Code
Integer
The HTTP response code the request returned.
-
Response String
String
The response content as a string.
For any questions, help, suggestions or feature requests, please feel free to contact me at nbpsup@gmail.com