https://github.com/gauravssnl/dpaste-android
Android Application for dpaste.com
https://github.com/gauravssnl/dpaste-android
android android-application droidscript javascript
Last synced: 20 days ago
JSON representation
Android Application for dpaste.com
- Host: GitHub
- URL: https://github.com/gauravssnl/dpaste-android
- Owner: gauravssnl
- License: mit
- Created: 2018-03-29T06:55:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T16:33:11.000Z (over 7 years ago)
- Last Synced: 2025-06-09T18:05:57.022Z (12 months ago)
- Topics: android, android-application, droidscript, javascript
- Language: JavaScript
- Size: 1.3 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dpaste-android
Android Application for sharing codes on [dpaste.com](http://dpaste.com)

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:
```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]( https://mobile.twitter.com/pbx/)
Thanks to Paul Bissex for creating dpaste.com