PHPackages                             imlolman/zohobooks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. imlolman/zohobooks

ActiveLibrary[API Development](/categories/api)

imlolman/zohobooks
==================

An Unofficial PHP SDK for ZohoBooks generated by https://github.com/imlolman/php-sdk-generator-from-postman-sdk

0.0.9(9mo ago)076↓87.5%MITPHP

Since Aug 11Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/imlolman/ZohoBooks)[ Packagist](https://packagist.org/packages/imlolman/zohobooks)[ RSS](/packages/imlolman-zohobooks/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

Unofficial ZohoBooks SDK
------------------------

[](#unofficial-zohobooks-sdk)

This is a PHP SDK generated with the help of the Postman Collection of ZohoBooks API by using  tool created by me and then modified to work with ZohoBooks API. This SDK is not officially supported by ZohoBooks.

### Installation

[](#installation)

```
composer require imlolman/zohobooks

```

### Usage

[](#usage)

1: We have to get code to get access and refresh token. We can get code by visiting the following URL in the browser and authorizing the zohoBooks, you will get code in return: `https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id={{{{ CLIENT ID HERE }}}}&scope=ZohoBooks.fullaccess.all&redirect_uri={{{{ YOUR REDIRECT URI HERE }}}}&prompt=consent&access_type=offline`

2: After visiting the URL, you will get an authorization code that you can use to get access and refresh token by sending a `POST` request to the following URL: `https://accounts.zoho.com/oauth/v2/token?client_id={{{{ CLIENT ID HERE }}}}&grant_type=authorization_code&client_secret={{{{ CLIENT SECRET HERE }}}}&redirect_uri={{{{ REDIRECT URI }}}}&code={{{{ AUTHORIZATION CODE FROM ABOVE REQUEST }}}}`

3: Once you have tokens, use in below code

```
