get paid to paste


API Documentation
Any of the following API Methods can be hit with POST and GET. The return formats are either XML or JSON, as specified by the hit.

api/create - creating a paste
api/get - retrieving a paste
api/list - list pastes made by an user
api/delete - deleting a paste
api/edit - editting a paste

Download PHP API Library

Deleting a paste...

URL
http://tny.cz/api/delete.(xml|json)

ON SUCCESS
<?xml version="1.0" encoding="utf-8"?>
<result>
   <response>success</response>

</result>

ON FAIL
<?xml version="1.0" encoding="utf-8"?>
<result>
   <error>error_code_here</error>
</result>

ERROR CODES
no_id - no paste #id was supplied
paste_deleted - paste was deleted
paste_no_exist - paste does not exist
password_invalid - password for paste was incorrect.
auth_invalid - invalid authentification.
cannot_delete - paste cannot be deleted because it has no author.
author_only - only the author of a paste can delete it.

Required Parameters
id (string)
The paste #id to retrieve
authenticate (string) - conjoin username and password with a colon.
Password should be in MD5 format
Required to delete a paste.
Format: sampleuser:password