From 0a82ae223d1792436e60ddc9af30301fe8dd43d8 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Thu, 6 Nov 2014 19:15:51 +0300 Subject: [PATCH] Update README.md --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7c31499..7c03f19 100644 --- a/README.md +++ b/README.md @@ -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",