Skip to content

visit-widget/visionLiveSDK-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

visionLiveSDK-Python3

The Python3 SDK project for visionLive API

API Explorer: http://api.visioninternet.com/

API Document: http://api.visioninternet.com/Document

Install

# pip3 install -e git+https://github.com/Granicus/visionLiveSDK-Python3.git#egg=visionLiveSDK3

Uninstall

# pip3 uninstall visionLiveSDK3

Example

from visionLiveSDK3 import apiClient
from visionLiveSDK3.apiClient import ApiClient

appSecret = '{Your App Secret}'
appKey='{Your App Key}'
client = ApiClient('https://www.city.gov/API',appKey, appSecret)

# vision.cms.calendarcomponent.event.get is the API Name
eventResult = client.vision.cms.calendarcomponent.event.get(Fields=1, ID=3754)
dictEventResult = apiClient._O(dict(eventResult))
print(dictEventResult.Event.StartDate)

# vision.cms.core.system.content.get is the API Name
eventResult = client.vision.cms.core.system.content.get(Fields=1, ID=3754, ContentTypeName='Event')
dictEventResult = apiClient._O(dict(eventResult))
print(dictEventResult.Content.StartDate)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages