Python expert to integrate API
₹600-1500 INR
Dibayar saat pengiriman
I need someone who can help integrate ZOHO API call
[login to view URL]
#$Id$
from __future__ import with_statement
from [login to view URL] import ReportClient
import sys
class Config:
LOGINEMAILID="<your login email id>"
AUTHTOKEN="<your authtoken>"
DATABASENAME="<your db name>"
TABLENAME="<your table name>"
class Sample:
rc = None
def test(self):
rc = [login to view URL]()
opt = [login to view URL]()
if(opt == 6):
uri = [login to view URL]([login to view URL],[login to view URL])
else:
uri = [login to view URL]([login to view URL],[login to view URL],[login to view URL])
if(opt == 1):
[login to view URL](rc,uri)
elif(opt == 2):
[login to view URL](rc,uri)
elif(opt == 3):
[login to view URL](rc,uri)
elif(opt == 4):
[login to view URL](rc,uri)
elif(opt == 5):
[login to view URL](uri,"CSV",[login to view URL],None,None)
elif(opt == 6):
sql = "select Region from " + [login to view URL]
[login to view URL](uri,"CSV",[login to view URL],sql,None)
def getReportClient(self):
if([login to view URL] == ""):
raise Exception,"Configure AUTHTOKEN in Config class"
if([login to view URL] == None):
[login to view URL] = ReportClient([login to view URL])
return [login to view URL];
def addSingleRow(self,rc,uri):
rowData = {"Date":"01 Jan, 2009 00:00:00","Region":"East","Product Category":"Samples",
"Product":"SampleProduct","Customer Name":"Sample","Sales":2000,
"Cost":2000}
result = [login to view URL](uri,rowData,None)
print result
def updateData(self,rc,uri):
updateInfo = {"Region":"West","Product":"SampleProduct_2"}
[login to view URL](uri,updateInfo,"\"Customer Name\"='Sample'",None);
def deleteData(self,rc,uri):
[login to view URL](uri,"\"Customer Name\"='Sample'",None);
def importData(self,rc,uri):
try:
with open('[login to view URL]', 'r') as f:
importContent = [login to view URL]()
except Exception,e:
print "Error Check if file [login to view URL] exists in the current directory!! "
print "(" + str(e) + ")"
return
impResult = [login to view URL](uri,"APPEND",importContent,None)
print "Added Rows :" +str([login to view URL]) + " and Columns :" + str([login to view URL])
def getOption(self):
print "\n\nOptions\n 1 - Add Single Row\n 2 - Update Data\n 3 - Delete Data\n 4 - Import Data\n 5 - Export Data\n 6 - Export Data Using SQL"
print "\nEnter option : "
option = [login to view URL]().strip()
while((option == "") or (int(option) < 1) or (int(option) > 6)):
print "Enter proper option."
option = [login to view URL]().strip()
return int(option)
if __name__ == "__main__":
Sample().test()
ID Proyek: #25637936
Tentang proyek
3 freelancer rata-rata menawar ₹1583 untuk pekerjaan ini
Heey There, I took a look at ZOHO API and it is pretty simple, I can do it in a short time, Message me so I can start doing it for you Best Regards, Alberto
I am experienced in python scripting language and application interface integration. I will build you a python script for the integration and access the type of data that you need.
I have substantial knowledge about working with python. Please consider the proposal if you find it suitable.