This file contains hidden or 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
| (defn remote-heroku-db-spec [host port database username password] | |
| {:connection-uri (str "jdbc:postgresql://" host ":" port "/" database "?user=" username "&password=" password | |
| "&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory")}) |
This file contains hidden or 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
| (defn spit-to-stream [f content] | |
| (with-open [w (clojure.java.io/output-stream f)] | |
| (.write w content))) |
This file contains hidden or 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
| (ns instagram | |
| "Functions to authenticate against Instagram's API. | |
| See http://instagram.com/developer/authentication/ for parameter details." | |
| (:require [clj-http.client :as client])) | |
| (defn create-auth-url [client-id redirect-uri] | |
| (str "https://api.instagram.com/oauth/authorize/?client_id=" client-id | |
| "&redirect_uri=" redirect-uri | |
| "&response_type=code")) |
NewerOlder