1
0
mirror of synced 2024-11-21 21:06:07 +03:00

Update README.md

This commit is contained in:
Ilyas Salikhov 2014-11-06 19:15:51 +03:00
parent cf536edc2c
commit 0a82ae223d

View File

@ -75,14 +75,10 @@ try {
echo "CRM connection error: " . $e->getMessage();
}
if ($response->isSuccessful()) {
if (201 === $response->getStatusCode()) {
echo 'Order created successfully! Order ID in CRM = ' . $response->id;
// or $response['id'];
// or $response->getId();
} else {
echo 'Order updated successfully!';
}
if ($response->isSuccessful() && 201 === $response->getStatusCode()) {
echo 'Order created successfully! Order ID in CRM = ' . $response->id;
// or $response['id'];
// or $response->getId();
} else {
echo sprintf(
"Error of the order creating: [Code %s] %s",