Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 961 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 961 Bytes

dpaste-android

Android Application for sharing codes on dpaste.com

ScreenShot

Howto create a paste on dpaste.com?

We need to make a POST request to dpaste.com with thess paramaters: content, syntax, title, poster, expiry_days

Sample code for making POST request to dpaste.com in JavaScript:

url = "http://dpaste.com/api/v2/";
req = new XMLHttpRequest()
req.open("POST", url);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.onload = function ()
{
   alert(req.response);
   app.SetClipboardText( req.response );
}
params = "poster=gauravssnl&content=alert(ok)&syntax=js";
req.send(params);

You can set poster name and expiry days from Settings option from left drawer.

Author: gauravssnl

Dpaste Author: Paul Bissex

Thanks to Paul Bissex for creating dpaste.com