Пример #1
0
        public void AccessToken()
        {
            var token = new PandaDocBearerToken {
                AccessToken = "test"
            };

            Assert.AreEqual("test", token.AccessToken);
        }
Пример #2
0
        public void RefreshToken()
        {
            var token = new PandaDocBearerToken {
                RefreshToken = "test"
            };

            Assert.AreEqual("test", token.RefreshToken);
        }
Пример #3
0
        protected PandaDocHttpClient SetApiKey()
        {
            var client = new PandaDocHttpClient();

            var bearerToken = new PandaDocBearerToken {
                ApiKey = ESignConfig.PandaDocApiKey
            };

            client.SetBearerToken(bearerToken);

            return(client);
        }
Пример #4
0
        protected PandaDocHttpClient SetApiKey()
        {
            var settings = new PandaDocHttpClientSettings();
            var client   = new PandaDocHttpClient(settings);

            var bearerToken = new PandaDocBearerToken {
                ApiKey = "c6caae24740bb7bfffc0895f27bbf1ca7fe6bbe9"
            };

            client.SetBearerToken(bearerToken);

            return(client);
        }
Пример #5
0
 public void SetBearerToken(PandaDocBearerToken value)
 {
     BearerToken = value;
 }
        public void RefreshToken()
        {
            var token = new PandaDocBearerToken { RefreshToken = "test" };

            Assert.AreEqual("test", token.RefreshToken);
        }
        public void AccessToken()
        {
            var token = new PandaDocBearerToken { AccessToken = "test" };

            Assert.AreEqual("test", token.AccessToken);
        }