Exemplo n.º 1
0
 public void Authenticate()
 {
     vkClient.Authorize(new InternalVkApiAuthorizationRequestParams
     {
         ApplicationId = appSettings.VkStandaloneAppId,
         Login         = appSettings.VkLogin,
         Password      = appSettings.VkPassword,
         AccessToken   = appSettings.VkAccessToken
     });
 }
Exemplo n.º 2
0
 public static InternalVkApiAuthorizationResponse AuthorizeByAccessToken(this IVkClient client,
                                                                         string accessToken,
                                                                         ulong appId)
 {
     return(client.Authorize(new InternalVkApiAuthorizationRequestParams
     {
         ApplicationId = appId,
         AccessToken = accessToken
     }));
 }
Exemplo n.º 3
0
 public static InternalVkApiAuthorizationResponse AuthorizeByLoginPassword(this IVkClient client,
                                                                           string login,
                                                                           string password,
                                                                           ulong appId)
 {
     return(client.Authorize(new InternalVkApiAuthorizationRequestParams
     {
         ApplicationId = appId,
         Login = login,
         Password = password
     }));
 }