Skip to main content

fxiaoke CRM(ShareCRM) api.

Project description

fxiaoke-python

基于纷享开放平台开发。

设计思路参考 facebook_business

Install

pip install fxiaoke-python

Usage

from fxiaoke.api import FxiaokeApi
from fxiaoke.query import queryObj

api = FxiaokeApi.init(
    app_id="FSAID_xx",
    app_secret="xxx",
    permanent_code="xxx",
    open_user_id="FSUID_xxx",
)

data = queryObj().api_get(
    dataObjectApiName='LeadsObj',
    filters=[{
        'field_name': 'last_modified_time',
        'field_values': [1656213600000, 1656400000000],
        'operator': 'BETWEEN',
    }],
    limit=100,
    offset=0
)

import time
for i, rec in enumerate(data):
    print(i, rec['name'], time.ctime(rec['create_time']/1000), time.ctime(rec['last_modified_time']/1000), )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fxiaoke-python-0.0.3.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distribution

fxiaoke_python-0.0.3-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page