Skip to main content

YetiForce CRM Python API Wrapper

Project description

Copyright (c) 2019 kajetan.bancerz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: ##### YetiForce CRM Python API Wrapper

###### Description

This is a lightweight API Wrapper for YetiForce REST services.

###### Installation:

`pip install yetiforce-python`

###### Usage:

Login:
```python
>>> from yetiforce_python import YetiForceAPI
>>> api = YetiForceAPI(
>>> url='http(s)://<hostname>', # settings->integration->webservice applications
>>> ws_user='<webservice name>',
>>> ws_pass='<webservice passcode>',
>>> ws_key='<webservice API key>',
>>> username='<user's name>',
>>> password='<user's password>'
>>> )
>>> api.login()
{'language': True,
'lastLoginTime': '2019-03-19 12:57:02',
'lastLogoutTime': None,
'logged': True,
'name': None,
'parentName': None,
'preferences': {'activity_view': 'This Month',
'conv_rate': '1.00000',
'currency_code': 'EUR',
'currency_decimal_separator': '.',
'currency_grouping_pattern': '123,456,789',
'currency_grouping_separator': ' ',
'currency_id': 1,
'currency_name': 'Euro',
'currency_symbol': '€',
'currency_symbol_placement': '1.0$',
'date_format': 'yyyy-mm-dd',
'date_format_js': 'Y-m-d',
'dayoftheweek': 'Monday',
'end_hour': '16:00',
'hour_format': '24',
'no_of_currency_decimals': 2,
'start_hour': '08:00',
'time_zone': 'Europe/Warsaw',
'truncate_trailing_zeros': 0},
'type': 1}
```

Get modules:
````python
>>> api.list_modules()
{'Accounts': 'Accounts',
'ActivityRegister': 'Activity Register',
'Announcements': 'Announcements',

...

}
````

Get objects:
```python
>>> api.Leads.get_list(){'count': 1,
'headers': {'assigned_user_id': 'Assigned To',
'company': 'Lead name',
'email': 'Primary email',
'lastname': 'Short name',
'phone': 'Primary phone',
'website': 'Website'},
'isMorePages': False,
'records': {'115': {'assigned_user_id': 'Administrator',
'company': 'Some Company',
'email': 'info@company.com',
'phone': '+48 12 234 345',
'recordLabel': 'Some Company',
'website': 'https://www.company.com'}}}

>>> api.Leads.get(115)
{'data': {'active': 'Yes',

...

'website': 'http://www.company.com'},
'fields': {'active': 'Active',

...

'website': 'Website'},
'id': 115,
'inventory': False,
'name': 'Some Company'}
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

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

YetiForce-Python-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

YetiForce_Python-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file YetiForce-Python-0.1.0.tar.gz.

File metadata

  • Download URL: YetiForce-Python-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for YetiForce-Python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a3ef4517e7c97fa6805b378ad3db8c0ea2f617625696fdbe0808a69443af419e
MD5 295029b98dc01a745b49521704bf549e
BLAKE2b-256 c36845e2b290e0049b5f1d3d9ba2fa14a987eb2b904dadc06e2108dbb189d916

See more details on using hashes here.

File details

Details for the file YetiForce_Python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: YetiForce_Python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for YetiForce_Python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6dd9be0239e9a5fba8dd6b67fa2fe445f72a561072ebe0f492e8842b8fc22a
MD5 e7c7797d83aeb4cfe7d2ab0d0d149d00
BLAKE2b-256 d6f1d32ebafdfd662e531934f15cba4c2de0de33abfc7107261272cd85898fde

See more details on using hashes here.

Supported by

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