Constructor
new BricklinkRequest(method, uri, paramsopt, callbackopt, resourceopt)
Create a new request.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
method |
string | The type of HTTP request to perform. | ||
uri |
string | The relative of full path uri of a request to perform. This should not include any query parameters. | ||
params |
RequestParams |
<optional> |
Additional parameters to include with the request in either post body or query params. | |
callback |
BricklinkRequestCallback |
<optional> |
null | A callback function to perform after the request has been successfully performed. |
resource |
object |
<optional> |
A resource when using POST or PUT HTTP methods |
- Source:
Classes
Members
callback :BricklinkRequestCallback|null
Type:
- BricklinkRequestCallback | null
- Source:
method :string
Type:
- string
- Source:
params :RequestParams
Type:
- Source:
resource :object|null
Type:
- object | null
- Source:
uri :string
Type:
- string
- Source:
(static) DELETE :string
Type:
- string
- Source:
(static) GET :string
Type:
- string
- Source:
(static) POST :string
Type:
- string
- Source:
(static) PUT :string
Type:
- string
- Source: