Update Readme file with various fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Amazon Incentives - Gift Codes on Demand stand alone class
|
# Amazon Incentives - Gift Codes on Demand stand alone class
|
||||||
|
|
||||||
This is a abastract from (https://github.com/kamerk22/AmazonGiftCode) to be not dependend on Laravel base code.
|
This is a abastract from [https://github.com/kamerk22/AmazonGiftCod](https://github.com/kamerk22/AmazonGiftCode) to be not dependend on Laravel base code.
|
||||||
|
|
||||||
Amazon Gift Codes On Demand (AGCOD). Integration for Amazon Incentive API.
|
Amazon Gift Codes On Demand (AGCOD). Integration for Amazon Incentive API.
|
||||||
|
|
||||||
@@ -82,10 +82,13 @@ The error code is the curl handler error code.
|
|||||||
The error message is json encoded array with the layout
|
The error message is json encoded array with the layout
|
||||||
|
|
||||||
Use
|
Use
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$exception_array = gullevek\AmazonIncentives\AmazonIncentives::decodeExceptionMessage($exception_message);
|
$exception_array = gullevek\AmazonIncentives\AmazonIncentives::decodeExceptionMessage($exception_message);
|
||||||
```
|
```
|
||||||
|
|
||||||
to extract the below array from the thrown exception
|
to extract the below array from the thrown exception
|
||||||
|
|
||||||
```php
|
```php
|
||||||
[
|
[
|
||||||
'status' => 'AWS Status FAILURE or RESEND',
|
'status' => 'AWS Status FAILURE or RESEND',
|
||||||
@@ -106,7 +109,7 @@ to extract the below array from the thrown exception
|
|||||||
if code is T001 then this is a request flood error:
|
if code is T001 then this is a request flood error:
|
||||||
In this case the request has to be resend after a certain waiting period.
|
In this case the request has to be resend after a certain waiting period.
|
||||||
|
|
||||||
### E9999
|
### E999
|
||||||
|
|
||||||
if code is E999 some other critical error has happened
|
if code is E999 some other critical error has happened
|
||||||
|
|
||||||
@@ -117,6 +120,7 @@ if code is E001 if the return create/cancel/check calls is not an array
|
|||||||
### C001
|
### C001
|
||||||
|
|
||||||
fif code is C001 curl failed to init
|
fif code is C001 curl failed to init
|
||||||
|
|
||||||
### C002
|
### C002
|
||||||
|
|
||||||
if code is C002 a curl error has happened
|
if code is C002 a curl error has happened
|
||||||
@@ -132,6 +136,7 @@ If AWS_DEBUG is set to 1 and internal array will be written with debug info.
|
|||||||
The gulleek\AmazonIncentives\Debug\AmazonDebug class handles all this.
|
The gulleek\AmazonIncentives\Debug\AmazonDebug class handles all this.
|
||||||
|
|
||||||
In the gulleek\AmazonIncentives\AmazonIncentives main class the debugger gets set
|
In the gulleek\AmazonIncentives\AmazonIncentives main class the debugger gets set
|
||||||
|
|
||||||
* setDebug that turns debugger on/off and if on sets unique id (getId to check)
|
* setDebug that turns debugger on/off and if on sets unique id (getId to check)
|
||||||
|
|
||||||
New entries can be written with
|
New entries can be written with
|
||||||
|
|||||||
Reference in New Issue
Block a user