Skip to content

An org-mode extension to restclient.el

Notifications You must be signed in to change notification settings

arttsu/ob-restclient.el

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 

Repository files navigation

ob-restclient.el

https://melpa.org/packages/ob-restclient-badge.svg

An extension to restclient.el for emacs that provides org-babel support.

To get started, install ob-restclient.el and add (restclient . t) to org-babel-load-languages:

(org-babel-do-load-languages
 'org-babel-load-languages
 '((restclient . t)))

You can then execute the query by pressing C-c C-c on the source-block header.

header arguments for :results raw|value|pure|table will make a clean result containing solely the response, and :jq PATTERN will post-process the response by passing the value to jq, provided the binary exists at a location specified by org-babel-restclient--jq-path

#+BEGIN_SRC restclient
  GET http://example.com
#+END_SRC

#+RESULTS:
#+BEGIN_SRC html
<!doctype html>
<html>
<head>
  ...
</head>
</html>
#+END_SRC

See restclient.el for documentation and examples of usage.

Author

Alf Lervåg

About

An org-mode extension to restclient.el

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%