Uh oh! We couldn’t find any match.
Please try other search keywords.
Provides helper methods for HTTP requests.
All calls in the HTTP module are made synchronously and will wait until a system-defined timeout. It is usually not appropriate to wrap HTTP calls from Bixby in promises or callbacks. All methods accept both HTTP and HTTPS (secure) URLs.
String
String
String
String
String
String
String
String
Create a query string from the parameters.
Kind: Static method of http
Access: Public
Param | Type |
---|---|
args | Array.String |
String
Perform an HTTP GET request.
Kind: Static method of http
Access: Public
Param | Type | Description |
---|---|---|
url | String | |
[options] | Object | See below |
The object can have any of these keys:
format
: Output format.query
: Object containing unencoded keys and values for URL query string.cacheTime
: Cache time in milliseconds.basicAuth
: Basic Authentication; value must be an object with username
and password
.Perform an HTTP POST request.
Kind: Static method of http
Supports params and options from getUrl(), plus the following:
passAsJson
: If true
, pass the request parameters in the body in JSON format. Param | Type | Description |
---|---|---|
url | String | |
params | Object | Unencoded keys and values for the POST body |
options | Object |
String
Perform an HTTP DELETE request.
Kind: Static method of http
Supports params and options from getUrl(), plus the following:
passAsJson
: If true, pass the request parameters in the body in JSON format Param | Type | Description |
---|---|---|
url | String | |
params | Object | Unencoded keys and values for the DELETE body |
options | Object |
String
Perform an HTTP PATCH request.
Kind: Static method of http
Supports params and options from getUrl(), plus the following:
passAsJson
: If true
, pass the request parameters in the body in JSON format Param | Type | Description |
---|---|---|
url | String | |
params | Object | Unencoded keys and values for the POST body. |
options | Object |
String
Perform an HTTP PUT request.
Kind: Static method of http
Supports params and options from getUrl(), plus the following:
passAsJson
: If true
, pass the request parameters in the body in JSON format Param | Type | Description |
---|---|---|
url | String | |
params | Object | Unencoded keys and values for the POST body. |
options | Object |
String
Perform an HTTP GET request, signed with the Oauth appropriate access keys. (See Implementing JavaScript Actions for details.)
Kind: Static method of http
Access: Public
See getUrl() for params and options.
Param | Type |
---|---|
url | String |
options | Object |
String
Perform an HTTP DELETE request, signed with the Oauth appropriate access keys. (See Implementing JavaScript Actions for details.)
Kind: Static method of http
Access: Public
Param | Type |
---|---|
url | String |
params | |
options | Object |
See deleteUrl() for params and options.
String
Perform an HTTP POST request, signed with the Oauth appropriate access keys. (See Implementing JavaScript Actions for details.)
Kind: Static method of http
Access: Public
See postUrl() for params and options.
Param | Type |
---|---|
url | String |
params | |
options | Object |
String
Perform an HTTP PATCH request, signed with the Oauth appropriate access keys. (See Implementing JavaScript Actions for details.)
Kind: Static method of http
Access: Public
See patchUrl() for params and options.
Param | Type |
---|---|
url | String |
params | |
options | Object |
String
Perform an HTTP PUT request, signed with the Oauth appropriate access keys. (See Implementing JavaScript Actions for details.)
Kind: Static method of http
Access: Public
See putUrl() for params and options.
Param | Type |
---|---|
url | String |
params | |
options | Object |
Delivers an SPS payment via an HTTP POST request. For more information, see the Supporting Payments topic.
Kind: Static method of http
Param | Type |
---|---|
options | Object |
In the capsule's local JavaScript, you should define the options
parameter like the following:
var options = {}
options.headers = {
"Content-Type" : "application/json",
"request_num" : "1"
}
options.body = {
"heyTicketmasterCreateMyWallet": "just do it",
"card_number": "{{credit_card_number}}"
}
options.url = "https://postman-echo.com/post" // optional, can also be specified via `sps` in `endpoints`
var response = http.spsProxyPost(options)
Delivers an SPS payment via an HTTP PUT request. For more information, see the Supporting Payments topic.
Kind: Static method of http
Same parameters as http.spsProxyPost
Param | Type |
---|---|
options | Object |