Package com.vk.api.sdk.queries.utils
Class UtilsGetLinkStatsQueryWithExtended
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<UtilsGetLinkStatsQueryWithExtended,GetLinkStatsExtendedResponse>
-
- com.vk.api.sdk.queries.utils.UtilsGetLinkStatsQueryWithExtended
-
public class UtilsGetLinkStatsQueryWithExtended extends AbstractQueryBuilder<UtilsGetLinkStatsQueryWithExtended,GetLinkStatsExtendedResponse>
Query for Utils.getLinkStats method
-
-
Constructor Summary
Constructors Constructor Description UtilsGetLinkStatsQueryWithExtended(VkApiClient client, GroupActor actor, java.lang.String key)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersUtilsGetLinkStatsQueryWithExtended(VkApiClient client, ServiceActor actor, java.lang.String key)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersUtilsGetLinkStatsQueryWithExtended(VkApiClient client, UserActor actor, java.lang.String key)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UtilsGetLinkStatsQueryWithExtendedaccessKey(java.lang.String value)Access key for private link stats.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected UtilsGetLinkStatsQueryWithExtendedextended(java.lang.Boolean value)1 — to return extended stats data (sex, age, geo).protected UtilsGetLinkStatsQueryWithExtendedgetThis()Get reference to this objectUtilsGetLinkStatsQueryWithExtendedinterval(GetLinkStatsInterval value)Interval.UtilsGetLinkStatsQueryWithExtendedintervalsCount(java.lang.Integer value)Number of intervals to return.protected UtilsGetLinkStatsQueryWithExtendedkey(java.lang.String value)Link key (characters after vk.cc/).UtilsGetLinkStatsQueryWithExtendedsource(GetLinkStatsSource value)Source of scope-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
UtilsGetLinkStatsQueryWithExtended
public UtilsGetLinkStatsQueryWithExtended(VkApiClient client, UserActor actor, java.lang.String key)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenkey- value of "key" parameter.
-
UtilsGetLinkStatsQueryWithExtended
public UtilsGetLinkStatsQueryWithExtended(VkApiClient client, GroupActor actor, java.lang.String key)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenkey- value of "key" parameter.
-
UtilsGetLinkStatsQueryWithExtended
public UtilsGetLinkStatsQueryWithExtended(VkApiClient client, ServiceActor actor, java.lang.String key)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokenkey- value of "key" parameter.
-
-
Method Detail
-
key
protected UtilsGetLinkStatsQueryWithExtended key(java.lang.String value)
Link key (characters after vk.cc/).- Parameters:
value- value of "key" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
source
public UtilsGetLinkStatsQueryWithExtended source(GetLinkStatsSource value)
Source of scope- Parameters:
value- value of "source" parameter. By default vk_cc.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
accessKey
public UtilsGetLinkStatsQueryWithExtended accessKey(java.lang.String value)
Access key for private link stats.- Parameters:
value- value of "access key" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
interval
public UtilsGetLinkStatsQueryWithExtended interval(GetLinkStatsInterval value)
Interval.- Parameters:
value- value of "interval" parameter. By default day.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
intervalsCount
public UtilsGetLinkStatsQueryWithExtended intervalsCount(java.lang.Integer value)
Number of intervals to return.- Parameters:
value- value of "intervals count" parameter. Maximum is 100. Minimum is 0. By default 1.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
extended
protected UtilsGetLinkStatsQueryWithExtended extended(java.lang.Boolean value)
1 — to return extended stats data (sex, age, geo). 0 — to return views number only.- Parameters:
value- value of "extended" parameter. By default false.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected UtilsGetLinkStatsQueryWithExtended getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<UtilsGetLinkStatsQueryWithExtended,GetLinkStatsExtendedResponse>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<UtilsGetLinkStatsQueryWithExtended,GetLinkStatsExtendedResponse>- Returns:
- list of names
-
-