Constructor
# new ShortenedLink(link_data)
Used to handle a link you shortened.
Parameters:
Name | Type | Description |
---|---|---|
link_data |
object | The json object you get after shortening the link. |
- Source:
Methods
# delete() → {Promise.<(undefined|Error)>}
Delete the shortened link.
- Source:
Returns:
Promise, deletes the shortened link. Returns undefined on success.
- Type
- Promise.<(undefined|Error)>
# getDelUrl() → {String}
Get the delete URL to this shortened link.
- Source:
Returns:
The delete url of the shortified link.
- Type
- String
# getUrl() → {String}
Get the shortened URL.
- Source:
Returns:
The shortened link.
- Type
- String