Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Method implementing the 'rate_limit' API call #9

Closed
wants to merge 1 commit into from

2 participants

@benashford

A method to call /rate_limit to check rate limit status.

@Raynes Raynes closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 17, 2012
  1. @benashford
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/tentacles/core.clj
View
5 src/tentacles/core.clj
@@ -110,3 +110,8 @@
(defn api-call [method end-point positional query]
(let [query (query-map query)]
(make-request method end-point positional query)))
+
+;; API calls about the API
+(defn rate-limit
+ []
+ (api-call :get "rate_limit" nil nil))
Something went wrong with that request. Please try again.