Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.0 #14

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ License

## Latest Version

- [6.0.0](/versions/6.0.0/README.md)
- Handled API operation timeout error.

- [5.0.0](/versions/5.0.0/README.md)
- Handled Record `rollup_summary` datatype.

Expand Down Expand Up @@ -73,10 +76,10 @@ For older versions, please [refer](https://github.com/zoho/zohocrm-php-sdk-6.0/r

## Including the SDK in your project
You can include the SDK to your project using Composer.
For installing the latest [version](https://github.com/zoho/zohocrm-php-sdk-6.0/releases/tag/5.0.0) of PHP SDK, navigate to the workspace of your client app and run the following command.
For installing the latest [version](https://github.com/zoho/zohocrm-php-sdk-6.0/releases/tag/6.0.0) of PHP SDK, navigate to the workspace of your client app and run the following command.

```sh
composer require zohocrm/php-sdk-6.0:5.0.0
composer require zohocrm/php-sdk-6.0:6.0.0
```
With this, the PHP SDK will be installed and a package named vendor will be created in the workspace of your client app.

Expand All @@ -95,4 +98,4 @@ For example, if you generate the tokens for your Sandbox environment in the CN d

---

For more details, kindly refer here. [here](/versions/5.0.0/README.md).
For more details, kindly refer here. [here](/versions/6.0.0/README.md).
2 changes: 2 additions & 0 deletions src/com/zoho/crm/api/util/CommonAPIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,12 @@ public function apiCall($className, $encodeType)
if(array_key_exists(Constants::ERROR, $response))
{
SDKLogger::severeError(Constants::API_ERROR_RESPONSE . $response[Constants::ERROR], null);
throw new SDKException(Constants::API_ERROR_RESPONSE, $response[Constants::ERROR], null, null);
}
else
{
SDKLogger::severeError(Constants::API_ERROR_RESPONSE . json_encode($response, JSON_UNESCAPED_UNICODE), null);
throw new SDKException(Constants::API_ERROR_RESPONSE, json_encode($response, JSON_UNESCAPED_UNICODE), null, null);
}
}
return new APIResponse($headerMap, $statusCode, $returnObject, $isModel);
Expand Down
2 changes: 1 addition & 1 deletion src/com/zoho/crm/api/util/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Constants
const SET_API_URL_EXCEPTION = "Exception in setting API URL";
const AUTHENTICATION_EXCEPTION = "Exception in authenticating current request : ";
const FORM_REQUEST_EXCEPTION = "Exception in forming request body : ";
const SDK_VERSION = "5.0.0";
const SDK_VERSION = "6.0.0";
const API_CALL_EXCEPTION = "Exception in current API call execution : ";
const HTTP = "http";
const CONTENT_API_URL = "content.zohoapis.com";
Expand Down
Loading