OAuth credential management for both user and app-only authentication
OAuth credential management for both user and app-only authentication
(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.
(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
(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
(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
(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_secretRead 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
(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.
(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! 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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close