procountor package¶
Submodules¶
procountor.client module¶
-
class
procountor.client.
Client
(api_key, client_id, client_secret, redirect_uri, test_mode=True, api_version='supported')[source]¶ Bases:
procountor.api_methods.ApiMethods
Class for Procountor accounting API
- Following packages need to be installed:
- requests
Parameters: - api_key – Procountor API Key, string
- client_id – Procountor REST API client id, string
- client_secret – Procountor REST API client secret, string
- redirect_uri – URI where redirected after authentication, string
- test_mode – Wether to use test api or real api, bool
- api_version – Cen be latest, supported or >= 20.01, string
-
api_host
¶
-
api_url
¶
-
request
(method, endpoint, headers=None, url=None, files=None, *args, **kwargs)[source]¶ Method to make HTTP requests over Procountor REST API
Parameters: - method – wanted request method, uppercase string
- endpoint – wanted REST API endpoint, string
- headers – Overwrite HTTP-headers, dict
- kwargs – query parameters to pass to Procountor, dict
Returns: response from rest server, dict
Module contents¶
Top-level package for Procountor.