Hi recently im testing infusionsof/php-sdk version 1.6.6 and getting following error:
Infusionsoft\TokenExpiredException Object
(
[message:protected] =>
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Infusionsoft.php
[line:protected] => 516
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/ContactService.php
[line] => 60
[function] => restfulRequest
[class] => Infusionsoft\Infusionsoft
[type] => ->
[args] => Array
(
[0] => put
[1] => https://api.infusionsoft.com/crm/rest/v1/contacts/
[2] => Array
(
[given_name] => John
[family_name] => Doe
[email_addresses] => Array
(
[0] => stdClass Object
(
[field] => EMAIL1
[email] => john@test.com
)
)
[duplicate_option] => Email
)
)
)
[1] => Array
(
[file] => /var/www/html/index.php
[line] => 57
[function] => create
[class] => Infusionsoft\Api\Rest\ContactService
[type] => ->
[args] => Array
(
[0] => Array
(
[given_name] => John
[family_name] => Doe
[email_addresses] => Array
(
[0] => stdClass Object
(
[field] => EMAIL1
[email] => john@test.com
)
)
[duplicate_option] => Email
)
[1] => 1
)
)
)
[previous:Exception:private] =>
)
Im not sure why this error is thrown?
also getting following Deprication notices
Deprecated: Return type of Infusionsoft\Api\Rest\RestModel::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestModel.php on line 985
Deprecated: Return type of Infusionsoft\Api\Rest\RestModel::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestModel.php on line 997
Deprecated: Return type of Infusionsoft\Api\Rest\RestModel::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestModel.php on line 1010
Deprecated: Return type of Infusionsoft\Api\Rest\RestModel::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestModel.php on line 1022
Deprecated: Return type of Infusionsoft\Api\Rest\RestModel::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/infusionsoft/php-sdk/src/Infusionsoft/Api/Rest/RestModel.php on line 574