You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
20
-
21
-
Then import the package:
22
-
23
-
```python
24
-
import Avalara.SDK
16
+
pip install Avalara.SDK==24.12.1
25
17
```
26
18
27
19
### Setuptools
@@ -32,36 +24,29 @@ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
32
24
python setup.py install --user
33
25
```
34
26
35
-
(or `sudo python setup.py install` to install the package for all users)
36
-
37
-
Then import the package:
38
-
39
-
```python
40
-
import Avalara.SDK
41
-
```
42
-
43
27
## Getting Started
44
28
45
29
Please follow the [installation procedure](#installation--usage) and then run the following:
46
30
47
31
```python
48
32
49
33
import time
50
-
import Avalara.SDK
51
-
from Avalara.SDKimport api_client
34
+
from Avalara.SDK.configuration import Configuration
35
+
from Avalara.SDK.api_client import ApiClient
36
+
from Avalara.SDK.exceptions import ApiException
52
37
from Avalara.SDK.api.EInvoicing.V1.mandates_api import MandatesApi # noqa: E501
53
38
from pprint import pprint
54
39
55
40
# Define configuration object with parameters specified to your application.
56
-
configuration =Avalara.SDK.Configuration(
57
-
app_name='test app'
58
-
app_version='1.0'
59
-
machine_name='some machine'
60
-
access_token='YOUR_BEARER_TOKEN'
41
+
configuration = Configuration(
42
+
app_name='test app',
43
+
app_version='1.0',
44
+
machine_name='some machine',
45
+
access_token='',
61
46
environment='sandbox'
62
47
)
63
48
# Enter a context with an instance of the API client
64
-
withAvalara.SDK.ApiClient(configuration) as api_client:
49
+
with ApiClient(configuration) as api_client:
65
50
# Create an instance of the API class
66
51
api_instance = MandatesApi(api_client)
67
52
x_avalara_client ="Swagger UI; 22.7.0; Custom; 1.0"# str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) if omitted the server will use the default value of "Swagger UI; 22.7.0; Custom; 1.0"
@@ -72,7 +57,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client:
72
57
# Retrieve geolocation information for a specified address
0 commit comments