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
Specs
arg() :: String.Chars.t()
Specs
operation() :: Flickrex.Operation.Rest.t()
Specs
opts() :: Flickrex.Rest.args()
Link to this section Functions
Specs
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
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"
}