Flickrex.Flickr.Auth (flickrex v0.8.1) View Source
Link to this section Summary
Functions
Returns the credentials attached to an authentication token. This call <b>must</b> be signed, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
Returns a frob to be used during authentication. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
Get the full authentication token for a mini-token. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
Returns the auth token for the given frob, if one has been attached. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
Link to this section Types
Specs
arg() :: String.Chars.t()
Specs
operation() :: Flickrex.Operation.Rest.t()
Specs
opts() :: Flickrex.Rest.args()
Link to this section Functions
Specs
Returns the credentials attached to an authentication token. This call <b>must</b> be signed, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
This method does not require authentication.
Arguments
auth_token- The authentication token to check.
Example response
%{
"auth" => %{
"perms" => %{"_content" => "read"},
"token" => %{"_content" => "976598454353455"},
"user" => %{
"fullname" => "Cal H",
"nsid" => "12037949754@N01",
"username" => "Bees"
}
},
"stat" => "ok"
} Specs
Returns a frob to be used during authentication. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
This method does not require authentication.
Example response
%{"frob" => %{"_content" => "746563215463214621"}, "stat" => "ok"} Specs
Get the full authentication token for a mini-token. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
This method does not require authentication.
Arguments
mini_token- The mini-token typed in by a user. It should be 9 digits long. It may optionally contain dashes.
Example response
%{
"auth" => %{
"perms" => %{"_content" => "write"},
"token" => %{"_content" => "976598454353455"},
"user" => %{
"fullname" => "Cal H",
"nsid" => "12037949754@N01",
"username" => "Bees"
}
},
"stat" => "ok"
} Specs
Returns the auth token for the given frob, if one has been attached. <b>This method call must be signed</b>, and is <b><a href="https://www.flickr.com/services/api/auth.oauth.html">deprecated in favour of OAuth</a></b>.
This method does not require authentication.
Arguments
frob- The frob to check.
Example response
%{
"auth" => %{
"perms" => %{"_content" => "write"},
"token" => %{"_content" => "976598454353455"},
"user" => %{
"fullname" => "Cal H",
"nsid" => "12037949754@N01",
"username" => "Bees"
}
},
"stat" => "ok"
}