ReportClient provides the python based language binding to the https
based API of Zoho Analytics.
|
|
__init__(self,
refreshToken,
clientId,
clientSecret)
Creates a new ReportClient instance. |
source code
|
|
|
|
getOAuthToken(self,
clientId,
clientSecret,
refreshToken)
Internal method for getting OAuth token. |
source code
|
|
|
|
__sendRequest(self,
url,
httpMethod,
payLoad,
action,
callBackData)
Internal method to send request to the server. |
source code
|
|
|
|
invalidOAUTH(self,
respObj)
Internal method to check whether accesstoken expires or not. |
source code
|
|
|
|
|
|
dictionary
|
addRow(self,
tableURI,
columnValues,
config=None)
Adds a row to the specified table identified by the URI. |
source code
|
|
|
string
|
deleteData(self,
tableURI,
criteria,
config)
Delete the data in the specified table identified by the URI. |
source code
|
|
|
string
|
updateData(self,
tableURI,
columnValues,
criteria,
config=None)
Update the data in the specified table identified by the URI. |
source code
|
|
|
ImportResult
|
importData(self,
tableURI,
importType,
importContent,
autoIdentify='TRUE',
onError='ABORT',
importConfig=None)
Bulk import data into the table identified by the URI. |
source code
|
|
|
ImportResult
|
importDataAsString(self,
tableURI,
importType,
importContent,
autoIdentify,
onError,
importConfig=None)
Bulk import data into the table identified by the URI. |
source code
|
|
|
|
exportData(self,
tableOrReportURI,
format,
exportToFileObj,
criteria=None,
config=None)
Export the data in the specified table identified by the URI. |
source code
|
|
|
|
exportDataUsingSQL(self,
tableOrReportURI,
format,
exportToFileObj,
sql,
config=None)
Export the data with the specified SQL query identified by the URI. |
source code
|
|
|
string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dictionary
|
|
|
|
|
|
dictionary
|
createSimilarViews(self,
tableURI,
refView,
folderName,
customFormula,
aggFormula,
config=None)
This method is used to create similar views . |
source code
|
|
|
|
renameView(self,
dbURI,
viewName,
newViewName,
viewDesc='',
config=None)
Rename the specified view with the new name and description. |
source code
|
|
|
string
|
saveAs(self,
dbURI,
viewToCopy,
newViewName,
config=None)
Create a new view by copying the structure and data of existing view. |
source code
|
|
|
|
|
|
|
copyReports(self,
dbURI,
views,
dbName,
dbKey,
config=None)
The Copy Reports API is used to copy one or more reports from one
workspace to another within the same account or even across user
accounts. |
source code
|
|
|
|
copyFormula(self,
tableURI,
formula,
dbName,
dbKey,
config=None)
The Copy Formula API is used to copy one or more formula columns from
one table to another within the same workspace or across workspaces
and even across one user account to another. |
source code
|
|
|
|
addColumn(self,
tableURI,
columnName,
dataType,
config=None)
Add the column into Zoho Analytics Table. |
source code
|
|
|
|
|
|
|
renameColumn(self,
tableURI,
oldColumnName,
newColumnName,
config=None)
Rename the column from Zoho Analytics Table. |
source code
|
|
|
list
|
|
|
list
|
|
|
|
addLookup(self,
tableURI,
columnName,
referedTable,
referedColumn,
onError,
config=None)
Add the lookup for the given column. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dictionary
|
|
|
string
|
|
|
string
|
getDatabaseID(self,
userURI,
dbName,
config=None)
Get workspace ID for a specified workspace identified by the URI. |
source code
|
|
|
string
|
isDbExist(self,
userURI,
dbName,
config=None)
Checks whether the workspace exist or not in thw ZohoAnalytics
account identified by the URI. |
source code
|
|
|
string
|
isViewExist(self,
dbURI,
viewName,
config=None)
Checks whether the view exist or not in the workspace identified by
dbURI. |
source code
|
|
|
string
|
isColumnExist(self,
tableURI,
columnName,
config=None)
Checks whether the column exist or not in the workspace identified by
tableURI. |
source code
|
|
|
string
|
getCopyDBKey(self,
dbURI,
config=None)
Get copy workspace key for specified workspace identified by the URI. |
source code
|
|
|
string
|
getViewName(self,
userURI,
objid,
config=None)
This function returns the name of a view in Zoho Analytics. |
source code
|
|
|
dictionary
|
getInfo(self,
tableURI,
config=None)
This method returns the workspace ID (DBID) and View ID (OBJID) of
the corresponding workspace. |
source code
|
|
|
dictionary
|
getViewInfo(self,
dbURI,
viewID,
config=None)
Returns view details like view name,description,type from the the
particular workspace identified by dbURI. |
source code
|
|
|
List
|
recentItems(self,
userURI,
config=None)
Returns the details of recently accessed views from the ZohoAnalytics
account identified by the URI. |
source code
|
|
|
List
|
getDashboards(self,
userURI,
config=None)
Returns the list of owned/shared dashboards present in the zoho
analytics account identified by the URI. |
source code
|
|
|
List
|
myWorkspaceList(self,
userURI,
config=None)
Returns the list of all owned workspaces present in the ZohoAnalytics
account identified by the URI. |
source code
|
|
|
List
|
sharedWorkspaceList(self,
userURI,
config=None)
Returns the list of all shared workspaces present in the
ZohoAnalytics account identified by the URI. |
source code
|
|
|
List
|
viewList(self,
dbURI,
config=None)
Returns the list of all accessible views present in the workspace
identified by the URI. |
source code
|
|
|
List
|
folderList(self,
dbURI,
config=None)
Returns the list of all accessible views present in the workspace
identified by the URI. |
source code
|
|
|
dictionary
|
|
|
|
shareView(self,
dbURI,
emailIds,
views,
criteria=None,
config=None)
This method is used to share the views (tables/reports/dashboards)
created in Zoho Analytics with users. |
source code
|
|
|
|
removeShare(self,
dbURI,
emailIds,
config=None)
This method is used to remove the shared views
(tables/reports/dashboards) in Zoho Analytics from the users. |
source code
|
|
|
|
addDbOwner(self,
dbURI,
emailIds,
config=None)
This method is used to add new admins to the Analytics workspace. |
source code
|
|
|
|
removeDbOwner(self,
dbURI,
emailIds,
config=None)
This method is used to remove the existing admins from the Analytics
workspace. |
source code
|
|
|
ShareInfo
|
|
|
List
|
groupInfo(self,
dbURI,
groupInfo=None)
Get meta information on the groups present in the workspace
identified by the URI. |
source code
|
|
|
string
|
createGroup(self,
dbURI,
groupInfo=None)
Create a new group in the workspace identified by the URI. |
source code
|
|
|
|
deleteGroup(self,
dbURI,
groupInfo=None)
Deletes the specified groups present in the workspace identified by
the URI. |
source code
|
|
|
|
updateGroupInfo(self,
dbURI,
groupInfo=None)
Updates the specified group information present in the workspace
identified by the URI. |
source code
|
|
|
|
addGroupMembers(self,
dbURI,
groupInfo=None)
Add new members for the specified group present in the workspace
identified by the URI. |
source code
|
|
|
|
removeGroupMembers(self,
dbURI,
groupInfo=None)
Remove members from the specified group present in the workspace
identified by the URI. |
source code
|
|
|
string
|
getViewUrl(self,
tableURI,
config=None)
This method returns the URL to access the mentioned view. |
source code
|
|
|
string
|
getEmbedUrl(self,
tableURI,
criteria=None,
config=None)
This method is used to get the embed URL of the particular table /
view. |
source code
|
|
|
dictionary
|
getSlideList(self,
dbURI,
slideInfo=None)
Get the list of all available slideshow present in the workspace
identified by the URI. |
source code
|
|
|
dictionary
|
getSlideInfo(self,
dbURI,
slideInfo=None)
Get meta-information of the provided slide present in the workspace
identified by the URI. |
source code
|
|
|
dictionary
|
getSlideUrl(self,
dbURI,
slideInfo=None)
Get the URL to access the mentioned slide present in the workspace
identified by the URI. |
source code
|
|
|
|
|
|
|
updateSlideShow(self,
dbURI,
slideInfo=None)
Update the mentioned slide information present in the workspace
identified by the URI. |
source code
|
|
|
|
deleteSlideShow(self,
dbURI,
slideInfo=None)
Delete the mentioned slides present in the workspace identified by
the URI. |
source code
|
|
|
list
|
|
|
|
addUser(self,
userURI,
emailIds,
config=None)
Add the users to the Zoho Analytics Account. |
source code
|
|
|
|
removeUser(self,
userURI,
emailIds,
config=None)
Remove the users from the Zoho Analytics Account. |
source code
|
|
|
|
|
|
|
|
|
PlanInfo
|
|
|
|
changeUserRole(self,
userURI,
emailIds,
role,
config=None)
Change the role of specified users with the new role provided. |
source code
|
|
|
string
|
|
|
string
|
|
|
string
|
getURI(self,
dbOwnerName,
dbName,
tableOrReportName)
Returns the URI for the specified workspace table (or report). |
source code
|
|
|
|
splCharReplace(self,
value)
Internal method for handling special characters in tale or workspace
name. |
source code
|
|
|
|
getResp(self,
url,
httpMethod,
payLoad)
Internal method.(For google app integ). |
source code
|
|