Flickrex.Flickr.Cameras (flickrex v0.8.1) View Source

Link to this section Summary

Functions

Retrieve all the models for a given camera brand.

Returns all the brands of cameras that Flickr knows about.

Link to this section Types

Link to this section Functions

Link to this function

get_brand_models(brand, opts \\ [])

View Source

Specs

get_brand_models(arg(), opts()) :: operation()

Retrieve all the models for a given camera brand.

This method does not require authentication.

Arguments

  • brand - The ID of the requested brand (as returned from flickr.cameras.getBrands).

Example response

%{
  "cameras" => %{
    "brand" => "apple",
    "camera" => %{
      "details" => %{
        "lcd_size" => %{"_content" => "40.5"},
        "megapixels" => %{"_content" => "22.0"},
        "storage_type" => %{"_content" => "Flash"},
        "zoom" => %{"_content" => "3.0"}
      },
      "id" => "iphone_9000",
      "images" => %{
        "large" => %{
          "_content" => "http://farm3.staticflickr.com/1234/cameras/123456_model_large_123456.jpg"
        },
        "small" => %{
          "_content" => "http://farm3.staticflickr.com/1234/cameras/123456_model_small_123456.jpg"
        }
      },
      "name" => %{"_content" => "iPhone 9000"}
    }
  },
  "stat" => "ok"
}

Specs

get_brands(opts()) :: operation()

Returns all the brands of cameras that Flickr knows about.

This method does not require authentication.

Example response

%{
  "brands" => %{
    "brand" => [
      %{"_content" => "Canon", "id" => "canon"},
      %{"_content" => "Nikon", "id" => "nikon"},
      %{"_content" => "Apple", "id" => "apple"}
    ]
  },
  "stat" => "ok"
}