AddressToken
Get info about a specific address token.
GET /address/token/{tokenId}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_id
|
str
|
Token ID. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Token representation as dict. |
Source code in nukiwebapi/address_token.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
Get info about a redeemed address token.
GET /address/token/{tokenId}/redeem
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_id
|
str
|
Token ID. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Redeemed token representation as dict. |
Source code in nukiwebapi/address_token.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
Redeem an address token.
POST /address/token/{tokenId}/redeem
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_id
|
str
|
Token ID. |
required |
email
|
bool
|
Whether to send an email. Defaults to True. |
True
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response as dict. |
Source code in nukiwebapi/address_token.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
Get a list of tokens for a specific address.
GET /address/{addressId}/token
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address_id
|
int
|
Address ID. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of token representations. |
Source code in nukiwebapi/address_token.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |