Liking cljdoc? Tell your friends :D

oauth.client

OAuth client library for Clojure.

OAuth client library for Clojure.
raw docstring

access-tokenclj

(access-token consumer request-token)
(access-token consumer request-token verifier)

Exchange a request token for an access token. When provided with two arguments, this function operates as per OAuth 1.0. With three arguments, a verifier is used.

Exchange a request token for an access token.
When provided with two arguments, this function operates as per OAuth 1.0.
With three arguments, a verifier is used.
sourceraw docstring

authorization-headerclj

(authorization-header oauth-params)
(authorization-header oauth-params realm)

OAuth credentials formatted for the Authorization HTTP header.

OAuth credentials formatted for the Authorization HTTP header.
sourceraw docstring

build-oauth-token-requestclj

(build-oauth-token-request consumer
                           uri
                           unsigned-oauth-params
                           &
                           [extra-params token-secret])

Used to build actual OAuth request.

Used to build actual OAuth request.
sourceraw docstring

build-requestclj

(build-request oauth-params & [form-params])

Construct request from prepared paramters.

Construct request from prepared paramters.
sourceraw docstring

build-xauth-access-token-requestclj

(build-xauth-access-token-request consumer username password nonce timestamp)
(build-xauth-access-token-request consumer
                                  {token :oauth_token
                                   secret :oauth_token_secret}
                                  username
                                  password
                                  nonce
                                  timestamp)
source

Consumerclj

source

credentialsclj

(credentials consumer
             token
             token-secret
             request-method
             request-uri
             &
             [request-params])

Return authorization credentials needed for access to protected resources. The key-value pairs returned as a map will need to be added to the Authorization HTTP header or added as query parameters to the request.

Return authorization credentials needed for access to protected resources.
The key-value pairs returned as a map will need to be added to the
Authorization HTTP header or added as query parameters to the request.
sourceraw docstring

form-decodeclj

(form-decode s)

Parse form-encoded bodies from OAuth responses.

Parse form-encoded bodies from OAuth responses.
sourceraw docstring

make-consumerclj

(make-consumer key secret request-uri access-uri authorize-uri signature-method)

Make a consumer struct map.

Make a consumer struct map.
sourceraw docstring

post-request-body-decodedclj

(post-request-body-decoded url & [req])
source

refresh-tokenclj

(refresh-token consumer expired-token)

Exchange an expired access token for a new access token.

Exchange an expired access token for a new access token.
sourceraw docstring

request-tokenclj

(request-token consumer)
(request-token consumer callback-uri)
(request-token consumer callback-uri extra-params)

Fetch request token for the consumer.

Fetch request token for the consumer.
sourceraw docstring

user-approval-uriclj

(user-approval-uri consumer token)
(user-approval-uri consumer token extra-params)

Builds the URI to the Service Provider where the User will be prompted to approve the Consumer's access to their account. A map of extra parameters may be included.

Builds the URI to the Service Provider where the User will be prompted
to approve the Consumer's access to their account. A map of extra parameters may be included.
sourceraw docstring

xauth-access-tokenclj

(xauth-access-token consumer username password)

Request an access token with a username and password with xAuth.

Request an access token with a username and password with xAuth.
sourceraw docstring

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

× close