Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public VkApi Authorize(string login, string password)
  2. {
  3. try
  4. {
  5.  
  6. vkApi.Authorize(new ApiAuthParams
  7. {
  8. ApplicationId = 6612352,
  9. Login = login,
  10. Password = password,
  11. Settings = Settings.All
  12. });
  13. return vkApi;
  14.  
  15. }
  16. catch (VkApiException)
  17. {
  18. return null;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement