Update README.md
This commit is contained in:
parent
cf536edc2c
commit
0a82ae223d
@ -75,14 +75,10 @@ try {
|
|||||||
echo "CRM connection error: " . $e->getMessage();
|
echo "CRM connection error: " . $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($response->isSuccessful()) {
|
if ($response->isSuccessful() && 201 === $response->getStatusCode()) {
|
||||||
if (201 === $response->getStatusCode()) {
|
|
||||||
echo 'Order created successfully! Order ID in CRM = ' . $response->id;
|
echo 'Order created successfully! Order ID in CRM = ' . $response->id;
|
||||||
// or $response['id'];
|
// or $response['id'];
|
||||||
// or $response->getId();
|
// or $response->getId();
|
||||||
} else {
|
|
||||||
echo 'Order updated successfully!';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
"Error of the order creating: [Code %s] %s",
|
"Error of the order creating: [Code %s] %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user