From 7f024fb1de42daba68e08dcf373eb7bf17042107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Mahuet?= Date: Wed, 19 Nov 2014 12:53:05 +0100 Subject: [PATCH] fix #2 Instagram errors parsing --- .gitignore | 8 +++++++- README.md | 2 +- project.clj | 2 +- src/instagram/callbacks/handlers.clj | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8a24e83..75462cb 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,10 @@ pom.xml .settings .DS_Store instagram-api.iml -.idea +/.idea +*.iml +/out +/.idea_modules +/.classpath +/.project +.nrepl-port diff --git a/README.md b/README.md index a702e40..c3a8d93 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ It currently support all endpoints except everything related to real-time subscr Just add the following to your project.clj file in the _dependencies_ section: ``` -[instagram-api "0.1.7"] +[instagram-api "0.1.8"] ``` ## Examples diff --git a/project.clj b/project.clj index 23c0e28..30a2d1e 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject instagram-api/instagram-api "0.1.7" +(defproject instagram-api/instagram-api "0.1.8" :description "Clojure Instagram interface" :url "https://github.com/Rydgel/Clojure-Instagram-API" :license {:name "Eclipse Public License" diff --git a/src/instagram/callbacks/handlers.clj b/src/instagram/callbacks/handlers.clj index ad39f36..7ba236c 100644 --- a/src/instagram/callbacks/handlers.clj +++ b/src/instagram/callbacks/handlers.clj @@ -82,7 +82,7 @@ [response] (let [status (ac/status response) - body (json/read-str (ac/string response)) + body (json/read-str (ac/string response) :key-fn keyword) desc (-> body :meta :error_message) code (-> body :meta :code)