public class GetShortLink extends AuthorizedVkApiMethod<GetShortLink.Response>
Allows to receive a link shortened via vk.cc.
Modifier and Type | Class and Description |
---|---|
static class |
GetShortLink.Response
Response to utils.getShortLink request.
|
Constructor and Description |
---|
GetShortLink(String accessToken) |
Modifier and Type | Method and Description |
---|---|
protected Class<GetShortLink.Response> |
getResultType()
Gets type of VK API response.
|
protected String |
getUrl()
Gets VK API URL.
|
GetShortLink |
setPrivate(boolean isPrivate) |
GetShortLink |
setUrl(String url) |
addParam, execute, execute, executeAsync, getAsyncCaller, getJsonConverter, getMethod, getParams, getVkApiHttpClient, getVkApiParamsConverter, getVkApiResponseValidator, setAsyncCaller, setJsonConverter, setMethod, setParams, setVkApiHttpClient, setVkApiParamsConverter, setVkApiResponseValidator
public GetShortLink(String accessToken)
protected String getUrl()
VkApiMethod
getUrl
in class VkApiMethod<GetShortLink.Response>
protected Class<GetShortLink.Response> getResultType()
VkApiMethod
getResultType
in class VkApiMethod<GetShortLink.Response>
public GetShortLink setUrl(String url)
public GetShortLink setPrivate(boolean isPrivate)
Copyright © 2021. All rights reserved.