static void Main(string[] args)
 {
     QbConfig config = new QbConfig();
     config.ApplicationToken = ConfigurationSettings.AppSettings["applicationToken"];
     config.ConsumerKey = ConfigurationSettings.AppSettings["consumerKey"];
     config.ConsumerSecret = ConfigurationSettings.AppSettings["consumerSecret"];
     config.OauthRequestTokenEndpoint = ConfigurationSettings.AppSettings["oauthRequestTokenEndpoint"];
     config.OauthAccessTokenEndpoint = ConfigurationSettings.AppSettings["oauthAccessTokenEndpoint"];
     config.OauthBaseUrl = ConfigurationSettings.AppSettings["oauthBaseUrl"];
     config.OauthUserAuthUrl = ConfigurationSettings.AppSettings["oauthUserAuthUrl"];
     config.SelectedMode = QbConfig.AppMode.Console;
     QbResponse result = null;
     QbConnect connectToQuickBooks = new QbConnect();
     connectToQuickBooks.Connect(config, out result);
 }
Example #2
0
        static void Main(string[] args)
        {
            QbConfig config = new QbConfig();

            config.ApplicationToken          = ConfigurationSettings.AppSettings["applicationToken"];
            config.ConsumerKey               = ConfigurationSettings.AppSettings["consumerKey"];
            config.ConsumerSecret            = ConfigurationSettings.AppSettings["consumerSecret"];
            config.OauthRequestTokenEndpoint = ConfigurationSettings.AppSettings["oauthRequestTokenEndpoint"];
            config.OauthAccessTokenEndpoint  = ConfigurationSettings.AppSettings["oauthAccessTokenEndpoint"];
            config.OauthBaseUrl              = ConfigurationSettings.AppSettings["oauthBaseUrl"];
            config.OauthUserAuthUrl          = ConfigurationSettings.AppSettings["oauthUserAuthUrl"];
            config.SelectedMode              = QbConfig.AppMode.Console;
            QbResponse result = null;
            QbConnect  connectToQuickBooks = new QbConnect();

            connectToQuickBooks.Connect(config, out result);
        }