Report

Simple Data Toolkit - Tutorial - IEEE Events API - Python

November 08, 2023 at 5:15 AM UTC
This post has no media.
Profile picture
Franklin Powers

Simple Data Toolkit provides an unofficial API for reading events from the IEEE API. (At the time of this writing, the release of this is pending for complete support, but it is coming soon)

To retrieve all events in Python, using Simple Data Toolkit, we can do the following:


from sdtk import com_sdtk_api_IEEEAPI,com_sdtk_calendar_IEEEEventFormat

def printer(data, reader):
ieee = com_sdtk_calendar_IEEEEventFormat.instance
for event in reader.toArrayOfNativeMaps(None):
ci = ieee.read(event)
print(ci.summary)


com_sdtk_api_IEEEAPI.eventsAPI().retrieveData({"limit": "2"}, printer)


We can search using the following parameters:
- limit - The limit to the number of events to return
- start - The start datetime to search
- end - The end datetime to search


The columns supported at the time of this writing are:
- created-at mapped to created
- start-time mapped to start
- end-time mapped to end
- title mapped to summary
- uid mapped to uid

Any thoughts on Franklin's post?

To comment or reply, you need an Ortingo account.

Sign in or sign up

Here's what Ortingoers think of Franklin's post.

There are no comments on this post.