Flickrex.URL (flickrex v0.8.1) View Source

Generate Flickr URLs for photos, profiles, and photostreams

Examples

get_info = Flickrex.Flickr.Photos.get_info(photo_id)
{:ok, %{body: info}} = Flickrex.request(get_info)

photo = info["photo"]
medium_url = Flickrex.URL.url(photo)

Link to this section Summary

Types

A URL path parameter

A photo returned by the Flickr API

A Flickr URL

Functions

URL for Medium size photo

URL for Large size photo

URL for Small size photo

URL for Original size photo

URL for individual photo page

URL for individual photo set

URL for user photo sets

URL for user photostream

URL for user profile

URL for Square size photo

URL for Thumbnail size photo

URL for Medium 640 size photo

Link to this section Types

Specs

param() :: String.t()

A URL path parameter

Specs

photo() :: map()

A photo returned by the Flickr API

Specs

url() :: String.t()

A Flickr URL

Link to this section Functions

Specs

url(photo()) :: url()

URL for Medium size photo

Specs

url_b(photo()) :: url()

URL for Large size photo

Specs

url_m(photo()) :: url()

URL for Small size photo

Specs

url_o(photo()) :: url()

URL for Original size photo

Link to this function

url_photopage(user_id, photo_id)

View Source

Specs

url_photopage(param(), param()) :: url()

URL for individual photo page

Link to this function

url_photoset(user_id, photoset_id)

View Source

Specs

url_photoset(param(), param()) :: url()

URL for individual photo set

Specs

url_photosets(param()) :: url()

URL for user photo sets

Link to this function

url_photostream(user_id)

View Source

Specs

url_photostream(param()) :: url()

URL for user photostream

Specs

url_profile(param()) :: url()

URL for user profile

Specs

url_s(photo()) :: url()

URL for Square size photo

Specs

url_t(photo()) :: url()

URL for Thumbnail size photo

Specs

url_z(photo()) :: url()

URL for Medium 640 size photo