Handling authentication needs of the API.
- Source:
Methods
(inner) sign(key, secret, uri, body) → {URIjs}
Sign a URI instance.
Automatically adds a timestamp to the URI instance.
Parameters:
Name | Type | 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 |
- Source:
Throws:
-
if 'key' or 'secret' are invalid.
- Type
- errors.AuthenticationRequiredError
Returns:
same instance of URIjs, i.e. 'uri'
- Type
- URIjs