Package com.vk.api.sdk.queries.utils
Class UtilsGetLinkStatsQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<UtilsGetLinkStatsQuery,GetLinkStatsResponse>
-
- com.vk.api.sdk.queries.utils.UtilsGetLinkStatsQuery
-
public class UtilsGetLinkStatsQuery extends AbstractQueryBuilder<UtilsGetLinkStatsQuery,GetLinkStatsResponse>
Query for Utils.getLinkStats method
-
-
Constructor Summary
Constructors Constructor Description UtilsGetLinkStatsQuery(VkApiClient client, GroupActor actor, java.lang.String key)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersUtilsGetLinkStatsQuery(VkApiClient client, ServiceActor actor, java.lang.String key)Creates a AbstractQueryBuilder instance that can be used to build api request with various parametersUtilsGetLinkStatsQuery(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 UtilsGetLinkStatsQueryaccessKey(java.lang.String value)Access key for private link stats.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesUtilsGetLinkStatsQueryextended(java.lang.Boolean value)1 — to return extended stats data (sex, age, geo).protected UtilsGetLinkStatsQuerygetThis()Get reference to this objectUtilsGetLinkStatsQueryinterval(GetLinkStatsInterval value)Interval.UtilsGetLinkStatsQueryintervalsCount(java.lang.Integer value)Number of intervals to return.protected UtilsGetLinkStatsQuerykey(java.lang.String value)Link key (characters after vk.cc/).UtilsGetLinkStatsQuerysource(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
-
UtilsGetLinkStatsQuery
public UtilsGetLinkStatsQuery(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.
-
UtilsGetLinkStatsQuery
public UtilsGetLinkStatsQuery(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.
-
UtilsGetLinkStatsQuery
public UtilsGetLinkStatsQuery(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 UtilsGetLinkStatsQuery 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 UtilsGetLinkStatsQuery 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 UtilsGetLinkStatsQuery 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 UtilsGetLinkStatsQuery 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 UtilsGetLinkStatsQuery 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
public UtilsGetLinkStatsQuery 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 UtilsGetLinkStatsQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<UtilsGetLinkStatsQuery,GetLinkStatsResponse>- 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<UtilsGetLinkStatsQuery,GetLinkStatsResponse>- Returns:
- list of names
-
-