コード例 #1
0
        /// <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) };
        }
コード例 #2
0
ファイル: TestCommon.cs プロジェクト: blacktaxi/vkrestclient
 public TestUser(string login, string password, VkAuthToken token = null)
 {
     this.Login = login;
     this.Password = password;
     this._authToken = token;
 }