Skip to content

Commit

Permalink
Merge pull request #14 from zoho/beta
Browse files Browse the repository at this point in the history
6.0.0
  • Loading branch information
raja-7453 authored Sep 16, 2024
2 parents 311e56e + fd191cb commit e8cc2aa
Show file tree
Hide file tree
Showing 1,588 changed files with 154,895 additions and 4 deletions.
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

0 comments on commit e8cc2aa

Please sign in to comment.