Class: Vk::API::Newsfeed::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Newsfeed::Methods::Get
- Defined in:
- lib/vk/api/newsfeed/methods/get.rb
Overview
Returns data required to show newsfeed for the current user.
Arguments collapse
-
#count ⇒ Integer
Number of news items to return (default 50; maximum 100).
-
#end_time ⇒ Integer
Latest timestamp (in Unix time) of a news item to return.
-
#fields ⇒ Array
Additional fields of and to return.
-
#filters ⇒ Array
Filters to apply:; 'post' — new wall posts; 'photo' — new photos; 'photo_tag' — new photo tags; 'wall_photo' — new wall photos; 'friend' — new friends; 'note' — new notes.
-
#max_photos ⇒ Integer
Maximum number of photos to return.
-
#return_banned ⇒ Boolean
'1' — to return news items from banned sources.
-
#source_ids ⇒ String
Sources to obtain news from, separated by commas.; ; User IDs can be specified in formats '' or 'u' ; where '' is the user's friend ID.; ; Community IDs can be specified in formats '-' or 'g' ; where '' is the community ID.; ; If the parameter is not set, all of the user's friends and communities are returned, except for banned sources, which can be obtained with the method.;.
-
#start_from ⇒ String
Identifier required to get the next page of results.
-
#start_time ⇒ Integer
Earliest timestamp (in Unix time) of a news item to return.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Newsfeed::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Newsfeed::Methods::Get
|
# File 'lib/vk/api/newsfeed/methods/get.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of news items to return (default 50; maximum 100). For auto feed, you can use the 'new_offset' parameter returned by this method.
45 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 45 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#end_time ⇒ Integer
Returns Latest timestamp (in Unix time) of a news item to return. By default, the current time.
37 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 37 attribute :end_time, API::Types::Coercible::Int.optional.default(nil) |
#fields ⇒ Array
Returns Additional fields of and to return.
47 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 47 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#filters ⇒ Array
Returns Filters to apply:; 'post' — new wall posts; 'photo' — new photos; 'photo_tag' — new photo tags; 'wall_photo' — new wall photos; 'friend' — new friends; 'note' — new notes.
31 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 31 attribute :filters, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#max_photos ⇒ Integer
Returns Maximum number of photos to return. By default, '5'.
39 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 39 attribute :max_photos, API::Types::Coercible::Int.optional.default(nil) |
#return_banned ⇒ Boolean
Returns '1' — to return news items from banned sources.
33 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 33 attribute :return_banned, API::Types::Form::Bool.optional.default(nil) |
#source_ids ⇒ String
Returns Sources to obtain news from, separated by commas.; ; User IDs can be specified in formats '' or 'u' ; where '' is the user's friend ID.; ; Community IDs can be specified in formats '-' or 'g' ; where '' is the community ID.; ; If the parameter is not set, all of the user's friends and communities are returned, except for banned sources, which can be obtained with the method.;.
41 |
# File 'lib/vk/api/newsfeed/methods/get.rb', line 41 attribute :source_ids, API::Types::Coercible::String.optional.default(nil) |