CohesiveSDK-0.0.1
توضیحات
Sample Python Project for creating a new Python Module
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | CohesiveSDK-0.0.1 |
| نام | CohesiveSDK |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Nam Nguyen <nam@cohesiveapp.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/CohesiveSDK/ |
| مجوز | - |
## Description
This package contains a custom client for Salesforce API. This client allows developers
to publish custom events to any SFDC instance.
## Usage
- First, initialize the SalesforceClient by calling `SalesforceClient.initialize`.
- `createSalesforceEvent` will generate a new event.
- `updateSalesforceEvent` will update an existing event or throw an error if the event does not exist.
- `upsertSalesforceEvent` will update an event with the same subject, meeting date, owner, and attendee. If there are multiple events
matching these criteria, override the event that is closest to the request time. If there is no event matching these criteria, create
a new event.
```
salesforceClient = SalesforceClient.intialize(
salesforceDomain: 'https://cohesive2-dev-ed.develop.my.salesforce.com',
);
eventId = await salesforceClient.createSalesforceEvent(
accessToken='YOUR_ACCESS_TOKEN',
data={
AccountId: 'YOUR_ACCOUNT_ID',
MeetingName: 'Test Meeting',
MeetingUrl: 'test.xyz',
MeetingDate: new Date().toISOString(),
MeetingSummary: 'Test Summary',
MeetingAttendee: null,
Sentiment: 'Positive',
DurationInMinutes: 30,
},
mapping={
AccountId: 'OwnerId',
MeetingName: 'Subject',
MeetingUrl: 'Description',
MeetingDate: 'ActivityDateTime',
MeetingSummary: 'Description',
MeetingAttendee: 'WhoId',
Sentiment: 'Description',
},
);
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pyspark>=3.0.0 |
| - | bandit[toml]==1.7.4 |
| - | black==22.1.0 |
| - | check-manifest==0.48 |
| - | flake8-bugbear==22.1.11 |
| - | flake8-docstrings |
| - | flake8-formatter_junit_xml |
| - | flake8==4.0.1 |
| - | pre-commit==2.17.0 |
| - | pylint==2.12.2 |
| - | pylint_junit |
| - | pytest-cov==3.0.0 |
| - | pytest-mock<3.7.1 |
| - | pytest-runner |
| - | pytest==7.1.0 |
| - | pytest-github-actions-annotate-failures |
| - | shellcheck-py==0.8.0.4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl CohesiveSDK-0.0.1:
pip install CohesiveSDK-0.0.1.whl
نصب پکیج tar.gz CohesiveSDK-0.0.1:
pip install CohesiveSDK-0.0.1.tar.gz