[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 6c9f1ff 007/298: Add ix.io as provider
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 6c9f1ff 007/298: Add ix.io as provider |
Date: |
Thu, 9 Dec 2021 18:59:34 -0500 (EST) |
branch: elpa/webpaste
commit 6c9f1ff38062541b15edb3af7f1d39254b630dd3
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Add ix.io as provider
---
webpaste.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/webpaste.el b/webpaste.el
index c17b81b..00f411c 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -55,6 +55,21 @@
(goto-char (point-max)) ; Go to point-max
(webpaste-paste-region))) ; Paste region
+
+;; Define providers
+(defun webpaste-providers-ix.io (text)
+ "Paste TEXT to http://ix.io/."
+
+ ;; Use request.el to do request to ix.io to submit data
+ (request "http://ix.io/"
+ :type "POST"
+ :data '(("f:1" . text))
+ :parser 'buffer-string
+ :success (function* (lambda (&key data &allow-other-keys)
+ (when data
+ (webpaste-return-url data))))))
+
+
(provide 'webpaste)
;;; webpaste.el ends here
- [nongnu] elpa/webpaste f6b0709 001/298: first commit, (continued)
- [nongnu] elpa/webpaste f6b0709 001/298: first commit, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 11dcaae 008/298: Return nil, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 90bb1a9 010/298: Remove space, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 61f369e 011/298: Added function for returned url, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 183b1a7 012/298: Construct post data correctly, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 830704a 003/298: Added base lisp file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 96e76a7 002/298: Added LICENSE, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ff47ecd 004/298: Added stub for the function to paste region, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b4cd028 005/298: Added function to paste entire buffer, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 68ebb2c 006/298: Add request.el as dependency, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6c9f1ff 007/298: Add ix.io as provider,
ELPA Syncer <=
- [nongnu] elpa/webpaste f3794ea 009/298: Send data to ix.io, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 8f074b4 013/298: Autoload the two pasting functions, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ff4194e 014/298: Make new code section for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1114813 017/298: Move providers to customizable list with lambdas, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0c0f31b 020/298: Checkdoc checkup, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6694269 018/298: Add resulting url to kill ring for easy pasting, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1c7b313 021/298: Added variable for providers priority when running, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bf8f03c 023/298: Spacing, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 14a1e6e 022/298: Added general function to paste text, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0423f3f 024/298: Reorder file overall to have autoloads at the end, ELPA Syncer, 2021/12/09