Liking cljdoc? Tell your friends :D

twttr.auth

OAuth credential management for both user and app-only authentication

OAuth credential management for both user and app-only authentication
raw docstring

AppCredentialsclj

source

coll->MemoryCredentialsclj

(coll->MemoryCredentials credentials-coll)

Create a new MemoryCredentials record from a flat sequence of {User,App}Credentials records.

Create a new MemoryCredentials record from a flat sequence of {User,App}Credentials records.
sourceraw docstring

Credentialscljprotocol

auth-headerclj

(auth-header this request-method request-uri request-params)

Generate the string value for an Authorization HTTP header

Generate the string value for an Authorization HTTP header
source

env->AppCredentialsclj

(env->AppCredentials)
(env->AppCredentials env-mapping)

Create an AppCredentials instance from environment variables, defaulting to CONSUMER_KEY and CONSUMER_SECRET

Create an AppCredentials instance from environment variables, defaulting to
CONSUMER_KEY and CONSUMER_SECRET
sourceraw docstring

env->UserCredentialsclj

(env->UserCredentials)
(env->UserCredentials env-mapping)

Create a UserCredentials instance from environment variables, defaulting to CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, and ACCESS_TOKEN_SECRET

Create a UserCredentials instance from environment variables, defaulting to
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, and ACCESS_TOKEN_SECRET
sourceraw docstring

file->Credentials-collclj

(file->Credentials-coll csv-file)
(file->Credentials-coll csv-file column-mapping)

Read a sequence of App/UserCredentials instances from a CSV file.

  • column-mapping is a mapping from (App/)UserCredential keys to their column names in the CSV, defaulting to: consumer_key, consumer_secret, access_token, access_token_secret
Read a sequence of App/UserCredentials instances from a CSV file.
* `column-mapping` is a mapping from (App/)UserCredential keys to their
  column names in the CSV, defaulting to:
  consumer_key, consumer_secret, access_token, access_token_secret
sourceraw docstring

headers->RateLimitStatusclj

(headers->RateLimitStatus {:strs [x-rate-limit-limit x-rate-limit-remaining
                                  x-rate-limit-reset]
                           :or {x-rate-limit-limit "999"
                                x-rate-limit-remaining "999"
                                x-rate-limit-reset "0"}})

Parse Twitter response headers as a map with integer values, without the 'x-rate-limit-' prefix.

Parse Twitter response headers as a map with integer values,
without the 'x-rate-limit-' prefix.
sourceraw docstring

MemoryCredentialsclj

source

RateLimitStatusclj

source

StatefulCredentialscljprotocol

find!clj

(find! this path)

Find the freshest credentials from the collection this for requesting path

Find the freshest credentials from the collection `this` for requesting `path`

update!clj

(update! this credentials path rate-limit-status)

Update the rate-limit-status state associated with credentials for requesting path

Update the `rate-limit-status` state associated with `credentials` for requesting `path`
source

UserCredentialsclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close