Created
June 13, 2013 06:58
-
-
Save jeremyheiler/5771732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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