This commit is contained in:
@@ -21,9 +21,14 @@ using Intuit.Ipp.QueryFilter;
|
|||||||
using Intuit.Ipp.DataService;
|
using Intuit.Ipp.DataService;
|
||||||
using Intuit.Ipp.Exception;
|
using Intuit.Ipp.Exception;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//extra
|
//extra
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
|
//oauth2
|
||||||
|
using Intuit.Ipp.OAuth2PlatformClient;
|
||||||
|
|
||||||
//QUICKBOOKS ONLINE INTERFACE
|
//QUICKBOOKS ONLINE INTERFACE
|
||||||
//MAIN CASE WITH NOTES:
|
//MAIN CASE WITH NOTES:
|
||||||
//https://fog.ayanova.com/default.asp?3217
|
//https://fog.ayanova.com/default.asp?3217
|
||||||
@@ -304,7 +309,9 @@ namespace AyaNova.PlugIn.QBOI
|
|||||||
|
|
||||||
static ServiceContext SC = null;
|
static ServiceContext SC = null;
|
||||||
static DesktopIppOAuth.OAuthConnector CN;
|
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()
|
static public void StartAuthorization()
|
||||||
{
|
{
|
||||||
//case 3669
|
//case 3669
|
||||||
@@ -321,6 +328,8 @@ namespace AyaNova.PlugIn.QBOI
|
|||||||
CN.IppOAuthResultEvent += _authResultEvent;
|
CN.IppOAuthResultEvent += _authResultEvent;
|
||||||
//CN.Connect(KEY_O_AUTH_CONSUMER, KEY_O_AUTH_CONSUMER_SECRET, "http://www.ayanova.com");
|
//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");
|
CN.Connect(Ec(KOAC, "Invoice"), Ec(KOACS, "Invoice"), "http://www.ayanova.com");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -409,7 +418,7 @@ namespace AyaNova.PlugIn.QBOI
|
|||||||
if (!_AuthenticationCompleted)
|
if (!_AuthenticationCompleted)
|
||||||
{
|
{
|
||||||
IntegrationLog.Log(QBID, "PFC: Authenticating...");
|
IntegrationLog.Log(QBID, "PFC: Authenticating...");
|
||||||
StartAuthorization();
|
StartAuthorization();//case 3671
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!_AuthenticationCompleted)
|
while (!_AuthenticationCompleted)
|
||||||
|
|||||||
Reference in New Issue
Block a user