This commit is contained in:
2019-09-27 18:20:43 +00:00
parent be78822625
commit e513cae74a

View File

@@ -21,9 +21,14 @@ using Intuit.Ipp.QueryFilter;
using Intuit.Ipp.DataService;
using Intuit.Ipp.Exception;
//extra
using System.Linq;
//oauth2
using Intuit.Ipp.OAuth2PlatformClient;
//QUICKBOOKS ONLINE INTERFACE
//MAIN CASE WITH NOTES:
//https://fog.ayanova.com/default.asp?3217
@@ -304,7 +309,9 @@ namespace AyaNova.PlugIn.QBOI
static ServiceContext SC = null;
static DesktopIppOAuth.OAuthConnector CN;
//case 3671
//Modify the below code to instead work with a static tokens obtained from qBridge (just for initial testing)
//then test that all ops work witha fresh company connection
static public void StartAuthorization()
{
//case 3669
@@ -321,6 +328,8 @@ namespace AyaNova.PlugIn.QBOI
CN.IppOAuthResultEvent += _authResultEvent;
//CN.Connect(KEY_O_AUTH_CONSUMER, KEY_O_AUTH_CONSUMER_SECRET, "http://www.ayanova.com");
CN.Connect(Ec(KOAC, "Invoice"), Ec(KOACS, "Invoice"), "http://www.ayanova.com");
}
@@ -409,7 +418,7 @@ namespace AyaNova.PlugIn.QBOI
if (!_AuthenticationCompleted)
{
IntegrationLog.Log(QBID, "PFC: Authenticating...");
StartAuthorization();
StartAuthorization();//case 3671
}
while (!_AuthenticationCompleted)