Skip to main content

Python interface to the WBTEAMPRO API.

Project description

wbteampropy

Python interface for the WbTeamPro API

WbTeamPropy

WbTeamPropy is a Python interface to the WbTeamPro REST API.

Usage

Create a WbTeamPro interface with the API URL and credentials and use it to call the API.

import wbteampropy

wbteampro = wbteampropy.WBTEAMPRO(
    'https://example.com/modules/addons/wbteampro/api.php',
    'username',
    'password')
wbteampro.get_project(110)

API USERNAME This is a valid Administrator username that is within a WHMCS Administrative Role that has been granted access to the wbTeamPro system.

API PASSWORD This is the password for the valid Administrator

In general API methods can be called as methods in the WBTEAMPRO class. For available API methods see the WbTeamPro API reference. Note that the casing of the methods differ from the API actions. While the API actions are CamelCased the methods are snake_cased.

Calling unimplemented actions

Not all API actions are implemented as Python methods (they will be implemented as required, of course pull-requests are accepted). In order to call actions that are not yet implemented call() can be used. Example:

response = wbteampro.call(
    'SomeAction',
    param=value,
    list_param=[
        element,
        element2,
    ]
)

See the call() documentation for more info.

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

wbteampropy-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

wbteampropy-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file wbteampropy-0.1.0.tar.gz.

File metadata

  • Download URL: wbteampropy-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wbteampropy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 deb62221952b46f9295869cd7fe043031955bcb9b2a73257f447e3bb855a9d3a
MD5 f4d447ed79f7d7af047f0c18e22de681
BLAKE2b-256 cf6515bae58c85465102a11a1201663943c69ba3b51cefe7c662534d11300990

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wbteampropy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for wbteampropy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f45d8efc8a0f70d7bde5c096c056218260bfaa2450d9009c6eb3b1b65ebbaa
MD5 9bee76a88931bb8e52f671d3cdd691d9
BLAKE2b-256 dbfcebb98b15467617726be7786b6000dbce9230b0e7f75f6bd4c1b30354cce8

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