Skip to content

A Python application to synchronize Moodle user data to a Zoho CRM module. It fetches and filters users, utilizing Zoho OAuth tokens generated via Zoho API console for secure access, and handles data with logs and intermediary JSON files. Designed for automated execution via CRON job.

Notifications You must be signed in to change notification settings

JehanHapugalle/moodle-to-zoho-crm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moodle to Zoho CRM

This Python application automates the daily synchronization of user data from Moodle LMS to Zoho CRM using API integration.

Features

• Fetch New Students: Retrieves students created in the last 24 hours from Moodle API.

• Push to Zoho CRM: Uses Zoho OAuth API to authenticate and add new students to CRM.

• Update Existing Records: Compares all Moodle users with previously stored JSON data and updates any changes in Zoho CRM.

• Logging: Maintains logs of successful syncs, errors, and transaction details.

• Secure Credentials: Stores API keys and credentials securely using a .env file.

• Automated Execution: Runs daily via a CRON job on the hosting server.

Installation & Usage

  1. Set up API credentials in .env.
  2. Configure Moodle and Zoho API settings.
  3. Schedule the script to run daily using a CRON job.

Requirements

• requests==2.26.0

• python-dotenv==0.19.2

• pylint==2.6.0

This ensures a seamless and automated student data sync between Moodle and Zoho CRM.

Documentation

• The docs/ folder includes visual diagrams explaining how the push and update functions operate.

• Future documentation will also include:

  1. A CRON job command example for automation and how to set up on a server

  2. How to sync all historical Moodle user data to Zoho CRM

  3. Where the code has been generalized, showing what parts should be updated for your specific Moodle module or Zoho CRM setup

  4. How the application can be modified or extended for different modules or workflows

  5. How to setup Moodle API credentials and Zoho API Console to obtain tokens

Author

Jehan Hapugalle: JehanHapugalle

About

A Python application to synchronize Moodle user data to a Zoho CRM module. It fetches and filters users, utilizing Zoho OAuth tokens generated via Zoho API console for secure access, and handles data with logs and intermediary JSON files. Designed for automated execution via CRON job.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages