Created
September 1, 2020 05:48
-
-
Save Maadhav/3a04a78e6519690376c240a28b8fa67e to your computer and use it in GitHub Desktop.
Create a New Paste in PasteBin using Dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http.post( | |
'https://pastebin.com/api/api_post.php', | |
headers: {"Content-Type": "application/x-www-form-urlencoded"}, | |
body:"api_dev_key=<PASTEBIN_API_KEY>&api_paste_code=<DATA_YOU_WANT_TO_PASTE>&api_option=paste" | |
) | |
.then((value) => print(value.body)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment