(make-consumer & {:as oauth-defaults})
Returns an OAuth consumer HTTP client.
Returns an OAuth consumer HTTP client.
(oauth-access-token url
oauth-consumer-key
oauth-token
oauth-verifier
&
[request])
Obtain the OAuth access token.
Obtain the OAuth access token.
(oauth-authorization-header request)
Returns the OAuth header of request
.
Returns the OAuth header of `request`.
(oauth-authorize url oauth-token)
Send the user to the authorization url via browse-url
.
Send the user to the authorization url via `browse-url`.
(oauth-authorize-url url oauth-token)
Returns the authorization url
Returns the authorization url
(oauth-callback-confirmed? request-token)
Returns true if the :oauth-callback-confirmed key in
request-token
is true, otherwise false.
Returns true if the :oauth-callback-confirmed key in `request-token` is true, otherwise false.
(oauth-client oauth-consumer-key
oauth-consumer-secret
oauth-token
oauth-token-secret)
Returns a HTTP client for version 1 of the OAuth protocol.
Returns a HTTP client for version 1 of the OAuth protocol.
(oauth-nonce)
Returns a random OAuth nonce. The OAuth nonce is a unique token an application should generate for each unique request.
Returns a random OAuth nonce. The OAuth nonce is a unique token an application should generate for each unique request.
(oauth-parameter-string request)
Returns the OAuth parameter string from request
.
Returns the OAuth parameter string from `request`.
(oauth-request-signature request & [consumer-secret token-secret])
Calculates the OAuth signature from request
.
Calculates the OAuth signature from `request`.
(oauth-request-token url oauth-consumer-key oauth-consumer-secret & [request])
Obtain the OAuth request token to request user authorization.
Obtain the OAuth request token to request user authorization.
(oauth-sign-request request consumer-secret & [token-secret])
Sign the OAuth request with consumer-key
and token-secret
.
Sign the OAuth request with `consumer-key` and `token-secret`.
(oauth-signature-base request)
Returns the OAuth signature base string from request
.
Returns the OAuth signature base string from `request`.
(oauth-signature-parameters request)
Returns the OAuth signature parameters from request
.
Returns the OAuth signature parameters from `request`.
(oauth-signing-key key secret)
Returns the OAuth signing key.
Returns the OAuth signing key.
(oauth-timestamp)
Returns the current OAuth timestamp. The current time in seconds since the Unix epoch.
Returns the current OAuth timestamp. The current time in seconds since the Unix epoch.
(wrap-oauth-authorization client)
Returns a HTTP client that adds the OAuth authorization header to request.
Returns a HTTP client that adds the OAuth authorization header to request.
(wrap-oauth-defaults client & [params])
Returns a HTTP client with OAuth
Returns a HTTP client with OAuth
(wrap-oauth-signature client & [consumer-secret token-secret])
Returns a HTTP client that signs an OAuth request.
Returns a HTTP client that signs an OAuth request.
(wrap-remove-oauth-token client)
Remove the :oauth-token token from request
to make sure the
clj-http OAuth2 machinery doesn't kick it.
Remove the :oauth-token token from `request` to make sure the clj-http OAuth2 machinery doesn't kick it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close