Class: Vk::API::Photos::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Photos::Methods::Get
- Defined in:
- lib/vk/api/photos/methods/get.rb
Overview
Returns a list of a user's or community's photos.
Arguments collapse
-
#album_id ⇒ String
Photo album ID.
- #count ⇒ Integer
-
#extended ⇒ Boolean
'1' — to return additional 'likes', 'comments', and 'tags' fields; '0' — (default).
-
#feed ⇒ Integer
Unixtime, that can be obtained with method in date field to get all photos uploaded by the user on a specific day, or photos the user has been tagged on.
-
#feed_type ⇒ String
Type of feed obtained in 'feed' field of the method.
- #offset ⇒ Integer
-
#owner_id ⇒ Integer
ID of the user or community that owns the photos.
-
#photo_ids ⇒ Array
Photo IDs.
-
#photo_sizes ⇒ Boolean
'1' — to return photo sizes in a.
-
#rev ⇒ Boolean
Sort order:; '1' — reverse chronological; '0' — chronological.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Photos::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#album_id ⇒ String
Returns Photo album ID. To return information about photos from service albums, use the following string values: 'profile, wall, saved'.
34 |
# File 'lib/vk/api/photos/methods/get.rb', line 34 attribute :album_id, API::Types::Coercible::String.optional.default(nil) |
#count ⇒ Integer
50 |
# File 'lib/vk/api/photos/methods/get.rb', line 50 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#extended ⇒ Boolean
Returns '1' — to return additional 'likes', 'comments', and 'tags' fields; '0' — (default).
40 |
# File 'lib/vk/api/photos/methods/get.rb', line 40 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#feed ⇒ Integer
Returns unixtime, that can be obtained with method in date field to get all photos uploaded by the user on a specific day, or photos the user has been tagged on. Also, 'uid' parameter of the user the event happened with shall be specified.
44 |
# File 'lib/vk/api/photos/methods/get.rb', line 44 attribute :feed, API::Types::Coercible::Int.optional.default(nil) |
#feed_type ⇒ String
Returns Type of feed obtained in 'feed' field of the method.
42 |
# File 'lib/vk/api/photos/methods/get.rb', line 42 attribute :feed_type, API::Types::Coercible::String.optional.default(nil) |
#offset ⇒ Integer
48 |
# File 'lib/vk/api/photos/methods/get.rb', line 48 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of the user or community that owns the photos. Use a negative value to designate a community ID.
32 |
# File 'lib/vk/api/photos/methods/get.rb', line 32 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#photo_ids ⇒ Array
Returns Photo IDs.
36 |
# File 'lib/vk/api/photos/methods/get.rb', line 36 attribute :photo_ids, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#photo_sizes ⇒ Boolean
Returns '1' — to return photo sizes in a.
46 |
# File 'lib/vk/api/photos/methods/get.rb', line 46 attribute :photo_sizes, API::Types::Form::Bool.optional.default(nil) |
#rev ⇒ Boolean
Returns Sort order:; '1' — reverse chronological; '0' — chronological.
38 |
# File 'lib/vk/api/photos/methods/get.rb', line 38 attribute :rev, API::Types::Form::Bool.optional.default(nil) |