This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 14, | |
"contact_person1": "Ajay Laddha", | |
"contact_person2": "", | |
"company_name": "Neha Collection", | |
"company_grade": "D", | |
"phone_no": null, | |
"mobile_no1": "7567369544", | |
"mobile_no2": null, | |
"email": "[email protected]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
url = "https://www.zohoapis.in/crm/v2/invoice_items" | |
payload = json.dumps({ | |
"data": [ | |
{ | |
"Name": "00000000000000000003", | |
"Total_Months": 2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
''' | |
-> {{custom-module-name-2}} corressponds to invoice_info in postman client | |
dummy data insert into new custom module named invoice info | |
this is an auto increment field on invoice id | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
''' | |
{{accounts-domain}}/crm/v2/{{custom-module-name}} | |
in this case conversation | |
''' | |
url = "https://www.zohoapis.in/crm/v2/conversation" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
''' | |
16 may 2022 | |
create new client for new tokens | |
-> try new scopes for insert | |
-> tokens expire after 1hr so refresh and create new access tokens | |
''' | |
url = "https://accounts.zoho.in/oauth/v2/token?" | |
payload={ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pprint | |
import json | |
''' | |
Note : add https:// to the url it wont work without it | |
and for indian region use .in for accounts-domain(or accounts-url) | |
, and for api-domain | |
to get conversation from zoho crm | |
url = https://www.zohoapis.in/crm/v2/custom-module-name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"scope":["ZohoCreator.report.READ"], | |
"expiry_time":"auto-generated", | |
"client_id":"add-your-client-secret", | |
"client_secret":"add-your-client-secret", | |
"code":"code-add-from-client", | |
"grant_type":"authorization_code" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
import requests | |
import json | |
url = "https://www.zohoapis.in/crm/v2/Leads" | |
# trying to insert a lead using api and requests | |
''' | |
this is just a sample dummy input to the crm | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "dd809867-e207-43b8-ae65-2e9cd14903f7", | |
"name": "dubey_zoho_env_2", | |
"values": [ | |
{ | |
"key": "accounts-url", | |
"value": "https://accounts.zoho.in", | |
"enabled": true | |
}, | |
{ |