/// <summary> /// </summary> /// <param name="apiBaseUrl">API base url. https://api.vk.com/. </param> /// <param name="authToken">Access token you receive after successful authentication.</param> public VkApiSession(string apiBaseUrl, VkAuthToken authToken) { this.AuthToken = authToken; this.RestClient = new RestClient(apiBaseUrl) { Authenticator = new AccessTokenAuthenticator(this.AuthToken.Value) }; }
public TestUser(string login, string password, VkAuthToken token = null) { this.Login = login; this.Password = password; this._authToken = token; }