Advertisement
Guest User

Untitled

a guest
Jun 16th, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (with-open [client (http/create-client)]
  2.     (let [default-headers {}
  3.           response (http/POST client "https://www.googleapis.com/calendar/v3/calendars/hvent90@gmail.com/events"
  4.             :query (cheshire.core/generate-string {:summary "test" :end {:date "2014-06-17"} :start {:date "2014-06-17"}})
  5.             :headers {:content-type "application/json" :content-length 410 :authorization "Bearer ya29.fakeaccesstoken"})]
  6.      (-> response http/await http/string)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement