Skip to content

Instantly share code, notes, and snippets.

@jeremyheiler
Created June 13, 2013 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyheiler/5771732 to your computer and use it in GitHub Desktop.
Save jeremyheiler/5771732 to your computer and use it in GitHub Desktop.
(require '[paprika.core] :as adn)
;; Assume t is your access token.
(def at {:access-token t})
;; The simple case allows the first argument to be a string.
(adn/create-post "This is a test" at)
;; For every other case, pass in a map.
(adn/create-post {:text "This is a test" :reply-to "123"} at)
(adn/create-post {:text "This is a test"
:annotations [{:type "net.app.core.geolocation"
:value {:latitude 74.0064
:longitude 40.7142}}]} at)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment