Handling authentication needs of the API.
- Source:
Methods
(inner) sign(key, secret, uri, body, optionsopt) → {URIjs}
Sign a URI instance.
Automatically adds a timestamp to the URI instance.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
key |
String | key used to sign | |||||||||
secret |
String | used to sign the request | |||||||||
uri |
URIjs | an instance of URIjs | |||||||||
body |
* | body to used in request | |||||||||
options |
Object |
<optional> |
options
Properties
|
- Source:
Throws:
-
if 'key' or 'secret' are invalid.
- Type
- errors.AuthenticationRequiredError
Returns:
same instance of URIjs, i.e. 'uri'
- Type
- URIjs