Skip to content

Commit 10b6037

Browse files
author
Frazer
authored
Merge pull request #1 from analyticbastard/master
Verify keys api call
2 parents 2f70c1c + 440165e commit 10b6037

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject fbia-client "0.5.3"
1+
(defproject fbia-client "0.5.4"
22
:description "Facebook instant articles client in clojure"
33
:url "https://github.com/clumsyjedi/fbia-client"
44
:license {:name "Eclipse Public License"

src/fbia_client/core.clj

+10
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,13 @@
9595
(dissoc :ids))))
9696
res))
9797

98+
(defn verify-key
99+
"Checks api keys. params is a map {:input_token \"X\" :access_token \"Y\"} where X might be the same as Y"
100+
[params]
101+
(let [res (chan 1)]
102+
(pipeline 1 res
103+
*xf-standard*
104+
(get-request (graph-url api-version
105+
"/debug_token"
106+
params)))
107+
res))

0 commit comments

Comments
 (0)