Questions tagged [vk-sdk]

Vk Sdk lets developers integrate their apps directly into the Vk social networking service. Use this tag for questions which may arise when developing FOR Vk. This tag is NOT for support questions about using the Vk website or the official Vk app.

Official documentation

24 questions
0
votes
2 answers

How to serialize the response to object by using Gson?

I make request directly to VK api with token Like this: https://api.vk.com/method/groups.get?fields=photo_50&access_token=MY_TOKEN&filter=admin%2C%20editor%2C%20moder&extended=1 Here is spec about api But I can't serialize the response to object by…
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
0
votes
1 answer

VKsdk login causes app to hang

I am trying to login to VK using VKsdk for android. When I press the button a login screen shows up, I press "allow" and login screen closes. But my app just hangs! And when i restart an App, I am still logged out. What am I doing wrong? Here is…
smplio
  • 150
  • 10
0
votes
2 answers

Get VK user avatar in Swift

I know how to get user email address in vkSdkAccessAuthorizationFinishedWithResult method. How can I get his avatar image and other profile info? I assume that i need to use VKRequest for this. Unfortunately i found no swift documentation for VK iOS…
moonvader
  • 19,761
  • 18
  • 67
  • 116
0
votes
1 answer

Does VK API support a search by file type?

Say I browse to a vk community and would like to be able to retrieve all of the gifs uploaded to that community, How would I go about this?
0
votes
2 answers

How to get captcha from response from VK API?

I have a script in Python that helps me to post some notes in VK. But sometimes my script needs to solve captcha. I have following code: vk = vkontakte.API(token=token) response = vk.wall.repost(object = link) As I understand, if I need to solve…
H. Potter
  • 1
  • 1
  • 3
0
votes
1 answer

VK SDK for android problems

I'm using Android Studio. I've downloaded VK SDK from github and added it in my project file.Also I import it import com.perm.kate.api.Api; I authorize, then get my friends with it Api api = new Api(Account.access_token, Constants.API_ID); users =…
Zhambulable
  • 1,083
  • 2
  • 10
  • 17
-2
votes
1 answer

VKSDK : How to translate code to swift?

I try to translate this code: [[VKSdk instance] setUiDelegate:self]; i tried so: VKSdk.instance().setUiDelegate(self) But this is wrong! Please help!
Dmitry
  • 2,963
  • 2
  • 21
  • 39
-2
votes
1 answer

I am trying to convert the following objective-c code to swift:

SVKShareDialogController * shareDialog = [VKShareDialogController new]; shareDialog.text = @"Your share text here"; shareDialog.otherAttachmentsStrings = @[@"https://vk.com/dev/ios_sdk"]; [shareDialog presentIn:self]; //SWIFT …
Evgenii
  • 31
  • 4
-3
votes
1 answer

How can I get the vk user id using kotlin?

I want to make a "share vk" button, for this I use an http request https://api.vk.com/method/wall.post . But it needs a user ID. How can I get it? Or is there another way to post on the vk wall?
MrOlegus
  • 5
  • 2
1
2