reddit / emacs

How to get OAuth2 access token with restclient.el or verb.el.

[deleted] · 2022-05-15 23:26
[removed]
JohnathanDee · 2022-05-15 23:47
Personally, I just run the source block with curl to get the token into the buffer, and then update a named scalar like: #+name: token : Bearer Blah blah blah....blah
whudwl · 2022-05-16 00:53
you can create a function to do that then set a var using that function. e.g. :token := (any-lisp-code) GET https://example.com/foo/bar Authorization: :token