[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/srht e17edd7643 04/27: Add README.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/srht e17edd7643 04/27: Add README. |
Date: |
Tue, 17 May 2022 22:57:59 -0400 (EDT) |
branch: externals/srht
commit e17edd764338a366abe0b2f78e34afd39e919d84
Author: Aleksandr Vityazev <avityazev@posteo.org>
Commit: Aleksandr Vityazev <avityazev@posteo.org>
Add README.
* srht: Add comments. (srht--api-request): Fix.
---
README.md | 8 ++++++++
README.org | 5 +++++
srht.el | 5 +++--
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..f75466b07e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,8 @@
+
+
+### Version 0.1.0
+
+
+# About
+
+GNU Emacs [sourcehut](https://sr.ht) API client.
diff --git a/README.org b/README.org
new file mode 100644
index 0000000000..c5585fda0c
--- /dev/null
+++ b/README.org
@@ -0,0 +1,5 @@
+#+OPTIONS: toc:nil
+*** Version 0.1.0
+
+* About
+GNU Emacs [[https://sr.ht][sourcehut]] API client.
diff --git a/srht.el b/srht.el
index 2748826a00..c27309a97a 100644
--- a/srht.el
+++ b/srht.el
@@ -23,7 +23,7 @@
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
-;; comment
+;; https://man.sr.ht/api-conventions.md
;;
;;; Code:
@@ -95,6 +95,7 @@ narrowed to the response body."
(json-array-type 'list))
(json-read)))
+;; TODO add body-type to use with `multipart/from-data'
(cl-defun srht--api-request (method &key service path query
body (else #'srht--else)
form (then 'sync) (as #'srht--as)
@@ -119,7 +120,7 @@ THEN is a callback function, which is called in the
response data.
ELSE is an optional callback function called when the request
fails with one argument, a `plz-error' struct."
(let ((uri (srht--make-uri service path query))
- (content-type (if form "multipart-form-data" "application/json")))
+ (content-type (if form "multipart/form-data" "application/json")))
(plz method uri
:headers `(,(cons "Content-Type" content-type)
,(cons "Authorization" (concat "token " srht-token)))
- [elpa] branch externals/srht created (now 0e53961bbc), ELPA Syncer, 2022/05/17
- [elpa] externals/srht f88188bdcb 02/27: Add license., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 0e2038516e 01/27: Initial commit., ELPA Syncer, 2022/05/17
- [elpa] externals/srht cf96533faf 03/27: Add guix.scm., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 65e791cce0 05/27: Move Elisp files to the lisp dir., ELPA Syncer, 2022/05/17
- [elpa] externals/srht b1bdf349ab 07/27: Add build.yml and external dependencies., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 41b2163b39 08/27: Replace emacs with emacs-next., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 0db1310218 09/27: Downgrade Emacs requirements to 27.1., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 235929a7a6 21/27: Update README., ELPA Syncer, 2022/05/17
- [elpa] externals/srht e17edd7643 04/27: Add README.,
ELPA Syncer <=
- [elpa] externals/srht 6037d9f03c 22/27: Update README., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 3c4df2cff1 06/27: Add make rules., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 7b3792ac75 12/27: Eldev: use the path from the store for plz., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 81519fed59 15/27: Add git service bindings., ELPA Syncer, 2022/05/17
- [elpa] externals/srht a99a8e4bd1 19/27: srht-git--repo-name-read: Add doc string., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 9dd0d15e4a 20/27: srht-git-repo-update: Fix., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 0e53961bbc 27/27: srht-read-with-annotaion: Add category arg., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 0b37b7225f 24/27: Add support for pagination., ELPA Syncer, 2022/05/17
- [elpa] externals/srht f3cd7c5639 10/27: Set eldev-project-main-file., ELPA Syncer, 2022/05/17
- [elpa] externals/srht 87ab3099b0 13/27: build: Add emacs-plz to packages., ELPA Syncer, 2022/05/17