Class UtilsGetLinkStatsQuery

    • 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 client
        actor - actor with access token
        key - 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 client
        actor - actor with access token
        key - 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 client
        actor - actor with access token
        key - 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object 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 AbstractQueryBuilder object to fulfill the "Builder" pattern.