UploadedPaste

UploadedPaste

Uploaded paste handler.

Constructor

# new UploadedPaste(upload_data)

Used to handle a paste that you created.
Parameters:
Name Type Description
upload_data object The json object you get after creating the paste.

Methods

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

Delete the paste.
Returns:
Deletes the paste. Returns undefined on success.
Type
Promise.<(undefined|Error)>

# getDelUrl() → {String}

Get the delete URL of the paste.
Returns:
The delete URL of the paste.
Type
String

# getUrl() → {String}

Get the URL to the paste.
Returns:
The URL to the paste.
Type
String