ayastrebov / vkontakte-ios-sdk Goto Github PK
View Code? Open in Web Editor NEWVkontakte API implementation
Vkontakte API implementation
Is it works fine?
Thanks :)
Добрый день,
После третьего входа виден только экран авторизации с текстом:
"Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов. Таким образом Вы можете потерять доступ к Вашему аккаунту."
P.S. Кнопка Отмена в этом контроллере не действует.
Использовал VK IOS SDK. Пробовал данный вариант запроса:
VKRequest request = [[VKApi wall] post:@{VK_API_FROM_GROUP: @"1", VK_API_GROUP_ID: @"944****", VK_API_POST_ID: @"4"}];
[request executeWithResultBlock:^(VKResponse *response) {
NSLog(@"OK");
} errorBlock:^(NSError *error) {
NSLog(@"failed");
}];
Подскажите, что делаю не так?
After logout you can try to login again. And in this case you can just tap "Log In" button with any values in fields (even empty). You will be loged in previous account, which you wish to log out
If you logout from authorization (accaunt 1) and then try re-authorization (accaunt2) we enter as accaunt 1.
how to cancel request here.
When clicked on other links, except login or cancel, in authorization form - controls blocked by activity indicator.
SDK 6.0
For now we have crash on cancel button from nav bar or cancel in web view EXC_BAC_ACCESS to delegate from Vkontakte.m, if I make it strong - crash dissapear, but i'm not sure it's memory safe
Also when we click Cancel on login VK we will see some json about error authorization or something like that, to avoid it You can add
if ([[URL absoluteString] isEqualToString:@"http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request"] || !NSEqualRanges([[URL absoluteString] rangeOfString:@"cancel=1"], NSMakeRange(NSNotFound, 0)))
in checking of cancel button clicked, i think vk api changed and now http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request handling isn't even needed
new accounts not require email - this optional parameter
There is en error with uploading images.
Hi
Will be better to make it like singleton and add one method with block.
For example:
[[VKAPIClient center] makeRequestWithMethod:@"audio.getById" // api function
parameters:[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"5340847_43763767", @"aid", @"1495645_973", @"oid", nil]
uids:nil
result:^(NSDictionary *json){
// manipulations with JSON results
}];
Thanks a mill
Requere logout in cancel authorizationDidCanceled delegate method.
Reproduce:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'". Check responce for nil before use [NSJSONSerialization JSONObjectWithData:response options:kNilOptions error:&error]; add
if (!responce) return; before it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.