Public
Authored by Marcus Kammer

GET spiegel online

Edited
spon.el 240 Bytes
  • (require 'json)
    (require 'url)
    (with-temp-buffer
    (url-retrieve "https://httpbin.org/get"
     (lambda (events)
       (goto-char url-http-end-of-headers)
       (let ((json-object-type 'plist) (json-key-type 'symbol) (json-array-type 'vector)))
       (json-read))))
    
    
    (with-temp-buffer
      (url-retrieve-synchronously "https://httpbin.org/get")
      (goto-char url-http-end-of-headers)
      (json-read))
    
    (with-temp-buffer (url-retrieve-synchronously "https://httpbin.org/get")
      (setf (point) url-http-end-of-headers)
      (prog1 (json-read)
        (kill-buffer)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment