diff --git a/src/Facades/TaxAgency.php b/src/Facades/TaxAgency.php new file mode 100644 index 00000000..2cd66cef --- /dev/null +++ b/src/Facades/TaxAgency.php @@ -0,0 +1,11 @@ + 'oauth1', + 'consumerKey' => "lve2eZN6ZNBrjN0Wp26JVYJbsOOFbF", + 'consumerSecret' => "fUhPIeu6jrq1UmNGXSMsIsl0JaHuHzSkFf3tsmrW", + 'accessTokenKey' => "qye2etcpyquO3B1t8ydZJI8OTelqJCMiLZlY5LdX7qZunwoo", + 'accessTokenSecret' => "2lEUtSEIvXf64CEkMLaGDK5rCwaxE9UvfW1dYrrH", + 'QBORealmID' => "193514489870599", + 'baseUrl' => "https://qbonline-e2e.api.intuit.com/" +)); + +$dataService->setLogLocation("/Users/hlu2/Desktop/newFolderForLog"); + +$taxAgency = TaxAgency::create([ + 'DisplayName' => 'Indiana Department of Revenue' +]); + +var_dump($taxAgency); +$result = $dataService->Add($taxAgency); +$error = $dataService->getLastError(); +if ($error) { + echo "The Status code is: " . $error->getHttpStatusCode() . "\n"; + echo "The Helper message is: " . $error->getOAuthHelperError() . "\n"; + echo "The Response message is: " . $error->getResponseBody() . "\n"; + exit(); +} + + +print_r($result->Id); + +#### +# Var-dump output +#### +/** + * +object(IPPTaxAgency)#40 (4) { +} + + */