Flickrex.Flickr.Auth.Oauth (flickrex v0.8.1) View Source

Link to this section Summary

Functions

Returns the credentials attached to an OAuth authentication token.

Exchange an auth token from the old Authentication API, to an OAuth access token. Calling this method will delete the auth token used to make the request.

Link to this section Types

Link to this section Functions

Link to this function

check_token(oauth_token, opts \\ [])

View Source

Specs

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

Returns the credentials attached to an OAuth authentication token.

This method does not require authentication.

Arguments

  • oauth_token - The OAuth authentication token to check.

Example response

%{
  "oauth" => %{
    "perms" => %{"_content" => "write"},
    "token" => %{"_content" => "72157627611980735-09e87c3024f733da"},
    "user" => %{
      "fullname" => "Jamal F",
      "nsid" => "1121451801@N07",
      "username" => "jamalf"
    }
  },
  "stat" => "ok"
}
Link to this function

get_access_token(opts \\ [])

View Source

Specs

get_access_token(opts()) :: operation()

Exchange an auth token from the old Authentication API, to an OAuth access token. Calling this method will delete the auth token used to make the request.

This method does not require authentication.

Example response

%{
  "auth" => %{
    "access_token" => %{
      "oauth_token" => "72157607082540144-8d5d7ea7696629bf",
      "oauth_token_secret" => "f38bf58b2d95bc8b"
    }
  },
  "stat" => "ok"
}