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

Link to this section Functions

Link to this function

check_token(auth_token, opts \\ [])

View Source

Specs

check_token(arg(), opts()) :: operation()

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

get_frob(opts()) :: operation()

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"}
Link to this function

get_full_token(mini_token, opts \\ [])

View Source

Specs

get_full_token(arg(), opts()) :: operation()

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"
}
Link to this function

get_token(frob, opts \\ [])

View Source

Specs

get_token(arg(), opts()) :: operation()

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"
}