Metadata-Version: 2.1
Name: peopleai-api
Version: 0.0.1
Summary: Python library to download activities from People.ai's REST API
Home-page: https://github.com/maxzheng/peopleai-api
Author: Max Zheng
Author-email: maxzheng.os@gmail.com
License: MIT
Keywords: People.ai activities API
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6
Requires-Dist: requests (==2.24.0)

peopleai-api
============

Python library to download `activities from People.ai's REST API
<https://help.people.ai/hc/en-us/articles/360042406653-Activity-APIs-Resources>`_

.. code-block:: python

    from peopleai_api import PeopleAIClient

    client = PeopleAIClient('<api_key>', '<api_secret>')

    job_id = client.start_activities_export(start_date='2020-08-06', end_date='2020-08-06', activity_type='all',
                                            output_format='JSONLines', export_type='delta')
    client.check_activities_export(job_id, until_completed=True)
    client.download_activities_export(job_id, '/tmp/peopleai-export.json')


