Skip to content

RizwanNawaz01/zoho-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Zoho CRM API Integration

This PHP script demonstrates how to interact with the Zoho CRM API to perform the following operations:

  1. Generate a Refresh Token
  2. Generate an Access Token
  3. Insert Leads
  4. Retrieve Leads

Requirements

  • PHP 7.4 or higher
  • cURL extension enabled in PHP
  • Zoho CRM account
  • OAuth credentials (client ID, client secret, redirect URI, and authorization code)

Setup Instructions

  1. Clone the Repository
    Copy the PHP script to your project directory.

  2. Configure Zoho OAuth Credentials
    Update the placeholders in the $post arrays for the generate_refresh_token() and generate_access_token() functions:

    • client_id
    • client_secret
    • redirect_uri
    • code (authorization code for refresh token generation)
    • refresh_token (for access token generation)
  3. Update API Endpoints
    Ensure the Zoho API URLs match your region:

    • Default: https://accounts.zoho.com
    • Other regions:
      • https://accounts.zoho.eu (Europe)
      • https://accounts.zoho.in (India)
  4. Update Access Token
    Replace the $access_token variable in insert_leads() and get_records() with the valid access token generated by generate_access_token().

  5. Run the Script
    Execute the PHP script from the command line or integrate it into your application.

    php script.php

About

Zoho Leads API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published