Bruno Tavares

NAME

Pikeo::API::Photo - Abstraction of a pikeo photo

FUNCTIONS

CONSTRUCTORS

new( \%args )

Returns a Pikeo::API::Contact object.

Required args are:

  • api

    Pikeo::API object

  • from_xml

    XML::LibXML node containing the contacts definitions

id()

Photo id

comments()

List of Pikeo::API::Comment objects representing the photo comments.

setPrivacy(\%args)

Change the privacy level of the photo.

Required args:

  • access_type

    The "access_type" is chosen from :

      0 for private
      2 for friends only
      4 for family only
      6 for friends and family only
      7 for publicAuthentication is required.

Optional args:

  • force_quit_group

    force_quit_group allow you to decide if photos can quit groups automatically.

    It happens when photo privacy change to a more private level that does not correspond to group accessibility.

addComment(\%args)

Adds a comment to the photo

Required args:

  • text

    The text of the comment

Optional args:

  • in_reply_to

    Pikeo::API::Comment parent comment

  • parent_id

    id of the parent comment

owner()

Pikeo::API::User that owns the photo

thumbnail_url($size)

Returns the url for the photo thumbnail of the given size.

Size can be one of the following:

1016x762 500x400 200x150 96x72 75x75 50x50

original_url()

Return full url to the original photo file

title()

is_family()

is_contact()

is_friend()

owner_username()

original_file_size()

original()

secret()

url_prefix()

description()

height()

width()

mime_type()

date_posted()

date_taken()

owner_id()

title()

tags()