public class Secure extends AbstractAction
| Constructor and Description |
|---|
Secure(VkApiClient client)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SecureAddAppEventQuery |
addAppEvent(ServiceActor actor)
Adds user activity information to an application
|
SecureAddAppEventQuery |
addAppEvent(ServiceActor actor,
java.lang.Integer activityId)
Adds user activity information to an application
|
SecureCheckTokenQuery |
checkToken(ServiceActor actor)
Checks the user authentication in 'IFrame' and 'Flash' apps using the 'access_token' parameter.
|
SecureGetAppBalanceQuery |
getAppBalance(ServiceActor actor)
Returns payment balance of the application in hundredth of a vote.
|
SecureGetSMSHistoryQuery |
getSMSHistory(ServiceActor actor)
Shows a list of SMS notifications sent by the application using [vk.com/dev/secure.sendSMSNotification|secure.sendSMSNotification] method.
|
SecureGetTransactionsHistoryQuery |
getTransactionsHistory(ServiceActor actor)
Shows history of votes transaction between users and the application.
|
SecureGetUserLevelQuery |
getUserLevel(ServiceActor actor)
Returns one of the previously set game levels of one or more users in the application.
|
SecureGetUserLevelQuery |
getUserLevel(ServiceActor actor,
java.util.List<java.lang.Long> userIds)
Returns one of the previously set game levels of one or more users in the application.
|
SecureGetUserLevelQuery |
getUserLevel(ServiceActor actor,
java.lang.Long... userIds)
Returns one of the previously set game levels of one or more users in the application.
|
SecureGiveEventStickerQuery |
giveEventSticker(ServiceActor actor)
Opens the game achievement and gives the user a sticker
|
SecureGiveEventStickerQuery |
giveEventSticker(ServiceActor actor,
java.lang.Integer achievementId,
java.util.List<java.lang.Long> userIds)
Opens the game achievement and gives the user a sticker
|
SecureGiveEventStickerQuery |
giveEventSticker(ServiceActor actor,
java.lang.Integer achievementId,
java.lang.Long... userIds)
Opens the game achievement and gives the user a sticker
|
SecureSendNotificationQuery |
sendNotification(ServiceActor actor)
Sends notification to the user.
|
SecureSendNotificationQuery |
sendNotification(ServiceActor actor,
java.lang.String message)
Sends notification to the user.
|
SecureSendSMSNotificationQuery |
sendSMSNotification(ServiceActor actor)
Sends 'SMS' notification to a user's mobile device.
|
SecureSendSMSNotificationQuery |
sendSMSNotification(ServiceActor actor,
java.lang.Long userId,
java.lang.String message)
Sends 'SMS' notification to a user's mobile device.
|
SecureSetCounterQuery |
setCounter(ServiceActor actor)
Sets a counter which is shown to the user in bold in the left menu.
|
SecureSetCounterQueryWithArray |
setCounterArray(ServiceActor actor)
Sets a counter which is shown to the user in bold in the left menu.
|
getClientpublic Secure(VkApiClient client)
client - vk api clientpublic SecureAddAppEventQuery addAppEvent(ServiceActor actor, java.lang.Integer activityId)
actor - vk service actoractivityId - there are 2 default activities: , * 1 - level. Works similar to ,, * 2 - points, saves points amount, Any other value is for saving completed missionspublic SecureAddAppEventQuery addAppEvent(ServiceActor actor)
actor - vk service actorpublic SecureCheckTokenQuery checkToken(ServiceActor actor)
actor - vk service actorpublic SecureGetAppBalanceQuery getAppBalance(ServiceActor actor)
actor - vk service actorpublic SecureGetSMSHistoryQuery getSMSHistory(ServiceActor actor)
actor - vk service actorpublic SecureGetTransactionsHistoryQuery getTransactionsHistory(ServiceActor actor)
actor - vk service actorpublic SecureGetUserLevelQuery getUserLevel(ServiceActor actor, java.lang.Long... userIds)
actor - vk service actoruserIds - public SecureGetUserLevelQuery getUserLevel(ServiceActor actor, java.util.List<java.lang.Long> userIds)
actor - vk service actoruserIds - public SecureGetUserLevelQuery getUserLevel(ServiceActor actor)
actor - vk service actorpublic SecureGiveEventStickerQuery giveEventSticker(ServiceActor actor, java.lang.Integer achievementId, java.lang.Long... userIds)
actor - vk service actorachievementId - userIds - public SecureGiveEventStickerQuery giveEventSticker(ServiceActor actor, java.lang.Integer achievementId, java.util.List<java.lang.Long> userIds)
actor - vk service actorachievementId - userIds - public SecureGiveEventStickerQuery giveEventSticker(ServiceActor actor)
actor - vk service actorpublic SecureSendNotificationQuery sendNotification(ServiceActor actor, java.lang.String message)
actor - vk service actormessage - notification text which should be sent in 'UTF-8' encoding ('254' characters maximum).public SecureSendNotificationQuery sendNotification(ServiceActor actor)
actor - vk service actorpublic SecureSendSMSNotificationQuery sendSMSNotification(ServiceActor actor, java.lang.Long userId, java.lang.String message)
actor - vk service actoruserId - ID of the user to whom SMS notification is sent. The user shall allow the application to send him/her notifications (, +1).message - 'SMS' text to be sent in 'UTF-8' encoding. Only Latin letters and numbers are allowed. Maximum size is '160' characters.public SecureSendSMSNotificationQuery sendSMSNotification(ServiceActor actor)
actor - vk service actorpublic SecureSetCounterQueryWithArray setCounterArray(ServiceActor actor)
actor - vk service actorpublic SecureSetCounterQuery setCounter(ServiceActor actor)
actor - vk service actor