public ResourceGuruClient(string clientId, string clientSecret, IAuthStore authStore = null, WebProxy proxy = null)
        {
            Proxy        = proxy;
            ClientId     = clientId;
            ClientSecret = clientSecret;
            if (authStore != null)
            {
                AuthStore = authStore;
            }
            else
            {
                AuthStore = new NullAuthStore();
            }

            OAuthInfo = AuthStore.Get();
        }
示例#2
0
        /// <summary>
        /// Internals the constructor.
        /// </summary>
        /// <param name="clientId">The client identifier.</param>
        /// <param name="clientSecret">The client secret.</param>
        /// <param name="authStore">The authentication store.</param>
        private void internalConstructor(string clientId, string clientSecret, IAuthStore authStore)
        {
            ClientId     = clientId;
            ClientSecret = clientSecret;
            ApiUrl       = "https://api.podio.com:443";

            if (authStore != null)
            {
                AuthStore = authStore;
            }
            else
            {
                AuthStore = new NullAuthStore();
            }

            OAuth = AuthStore.Get();
        }