Sitewide Notification
thingiverse.api.sitewidenotification
Contains endpoint functions for accessing the API
get_sitewidenotification
asyncio(*, client)
async
Get a sitewidenotification
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0 | None
|
GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0 |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification.py
asyncio_detailed(*, client)
async
Get a sitewidenotification
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
Response[GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0]
|
Response[GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0] |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification.py
sync(*, client)
Get a sitewidenotification
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0 | None
|
GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0 |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification.py
sync_detailed(*, client)
Get a sitewidenotification
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
Response[GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0]
|
Response[GetSitewidenotificationResponse401 | GetSitewidenotificationResponse403 | GetSitewidenotificationResponse404 | None | SitewidenotificationSchemaType0] |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification.py
get_sitewidenotification_id
asyncio(id, *, client)
async
Get a sitewidenotification by id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
int
|
Example: 1. |
required |
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0 | None
|
GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0 |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification_id.py
asyncio_detailed(id, *, client)
async
Get a sitewidenotification by id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
int
|
Example: 1. |
required |
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
Response[GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0]
|
Response[GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0] |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification_id.py
sync(id, *, client)
Get a sitewidenotification by id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
int
|
Example: 1. |
required |
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0 | None
|
GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0 |
Source code in thingiverse/api/sitewidenotification/get_sitewidenotification_id.py
sync_detailed(id, *, client)
Get a sitewidenotification by id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
int
|
Example: 1. |
required |
Raises:
| Type | Description |
|---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
| Type | Description |
|---|---|
Response[GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0]
|
Response[GetSitewidenotificationIdResponse401 | GetSitewidenotificationIdResponse403 | GetSitewidenotificationIdResponse404 | None | SitewidenotificationSchemaType0] |