ShortenedLink

ShortenedLink

Shortened link handler.

Constructor

Used to handle a link you shortened.
Parameters:
Name Type Description
link_data object The json object you get after shortening the link.

Methods

# delete() → {Promise.<(undefined|Error)>}

Delete the shortened link.
Returns:
Promise, deletes the shortened link. Returns undefined on success.
Type
Promise.<(undefined|Error)>

# getDelUrl() → {String}

Get the delete URL to this shortened link.
Returns:
The delete url of the shortified link.
Type
String

# getUrl() → {String}

Get the shortened URL.
Returns:
The shortened link.
Type
String