Lines 245-251 is what I'm referring to. Do I need to use the createUser method each time this file is called, or simply the first time for a given user? If I need to call createUser only the first time, how can I check if the user was already created? I don't see a function to test for that
if (!QuickBooks_Utilities::initialized($dsn))
{
QuickBooks_Utilities::initialize($dsn);
QuickBooks_Utilities::createUser($dsn, $user, $pass);
}
else
{
//QuickBooks_Utilities::createUser($dsn, $user, $pass);
$Queue = new QuickBooks_WebConnector_Queue($dsn);
$Queue->enqueue(QUICKBOOKS_QUERY, 6);
}
The first time this script is executed nothing is initialized so that needs to happen then I will create that user. When it's not the first time this script is executed how can I tell whether or not a user has been created? Should I just check quickbooks_user table for a user with matching username?