Flickrex.Flickr.Photos.People (flickrex v0.8.1) View Source
Link to this section Summary
Functions
Add a person to a photo. Coordinates and sizes of boxes are optional; they are measured in pixels, based on the 500px image size shown on individual photo pages.
Remove a person from a photo.
Remove the bounding box from a person in a photo
Edit the bounding box of an existing person on a photo.
Get a list of people in a given photo.
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
Add a person to a photo. Coordinates and sizes of boxes are optional; they are measured in pixels, based on the 500px image size shown on individual photo pages.
This method requires authentication with "write" permission.
Arguments
photo_id- The id of the photo to add a person to.user_id- The NSID of the user to add to the photo.
Options
person_x- The left-most pixel co-ordinate of the box around the person.person_y- The top-most pixel co-ordinate of the box around the person.person_w- The width (in pixels) of the box around the person.person_h- The height (in pixels) of the box around the person.
Specs
Remove a person from a photo.
This method requires authentication with "write" permission.
Arguments
photo_id- The id of the photo to remove a person from.user_id- The NSID of the person to remove from the photo.
Specs
Remove the bounding box from a person in a photo
This method requires authentication with "write" permission.
Arguments
photo_id- The id of the photo to edit a person in.user_id- The NSID of the person whose bounding box you want to remove.
edit_coords(photo_id, user_id, person_x, person_y, person_w, person_h, opts \\ [])
View SourceSpecs
Edit the bounding box of an existing person on a photo.
This method requires authentication with "write" permission.
Arguments
photo_id- The id of the photo to edit a person in.user_id- The NSID of the person to edit in a photo.person_x- The left-most pixel co-ordinate of the box around the person.person_y- The top-most pixel co-ordinate of the box around the person.person_w- The width (in pixels) of the box around the person.person_h- The height (in pixels) of the box around the person.
Specs
Get a list of people in a given photo.
This method does not require authentication.
Arguments
photo_id- The id of the photo to get a list of people for.
Example response
%{
"people" => %{
"person" => %{
"added_by" => "12037949754@N01",
"h" => "100",
"iconfarm" => "1",
"iconserver" => "1",
"nsid" => "87944415@N00",
"realname" => "Simon Batistoni",
"username" => "hitherto",
"w" => "100",
"x" => "50",
"y" => "50"
},
"total" => "1"
},
"stat" => "ok"
}