IntacctClient
class IntacctClient extends AbstractClient
Constants
| PROFILE_ENV_NAME |
Profile environment name |
Methods
__construct(array $params = array())
Initializes the class with the given parameters.
getSessionCreds()
Session credentials
executeAsync(Content $contentBlock, string $asyncPolicyId, bool $transaction = false, string $requestControlId = null, bool $uniqueFunctionControlIds = false, array $params = array())
Execute an asynchronous request to the API
Details
at line line 52
__construct(array $params = array())
Initializes the class with the given parameters.
The constructor accepts the following options:
profile_name(string, default=string "default") Profile name to useprofile_file(string) Profile file to load fromsender_id(string) Intacct sender IDsender_password(string) Intacct sender passwordsession_id(string) Intacct session IDendpoint_url(string) Endpoint URLcompany_id(string) Intacct company IDuser_id(string) Intacct user IDuser_password(string) Intacct user passwordmax_retries(int, default=int(5)) Max number of retriesno_retry_server_error_codes(int[], default=array(524)) HTTP server error codes to abort retrying if one occursverify_ssl(bool, default=bool(true)) Verify SSL certificate of responselogger(Psr\Log\LoggerInterface)log_formatter(Intacct\Logging\MessageFormatter) Log formatterlog_level(int, default=int(400)) Log levelmock_handler(GuzzleHttp\Handler\MockHandler) Mock handler for unit tests
in AbstractClient at line line 139
string
generateRandomControlId()
Generate a version 4 (random) UUID
at line line 62
SessionCredentials
getSessionCreds()
Session credentials
at line line 78
SynchronousResponse
execute(Content $contentBlock, bool $transaction = false, string $requestControlId = null, bool $uniqueFunctionControlIds = false, array $params = array())
Execute a synchronous request to the API
at line line 106
AsynchronousResponse
executeAsync(Content $contentBlock, string $asyncPolicyId, bool $transaction = false, string $requestControlId = null, bool $uniqueFunctionControlIds = false, array $params = array())
Execute an asynchronous request to the API