Message
thingiverse.api.message
Contains endpoint functions for accessing the API
post_messages
asyncio(*, client, body=UNSET)
async
Create a new message to share a thing
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostMessagesBody | Unset
|
|
UNSET
|
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 |
|---|---|
PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404 | None
|
PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404 |
Source code in thingiverse/api/message/post_messages.py
asyncio_detailed(*, client, body=UNSET)
async
Create a new message to share a thing
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostMessagesBody | Unset
|
|
UNSET
|
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[PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404]
|
Response[PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404] |
Source code in thingiverse/api/message/post_messages.py
sync(*, client, body=UNSET)
Create a new message to share a thing
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostMessagesBody | Unset
|
|
UNSET
|
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 |
|---|---|
PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404 | None
|
PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404 |
Source code in thingiverse/api/message/post_messages.py
sync_detailed(*, client, body=UNSET)
Create a new message to share a thing
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostMessagesBody | Unset
|
|
UNSET
|
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[PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404]
|
Response[PostMessagesResponse200 | PostMessagesResponse400 | PostMessagesResponse401 | PostMessagesResponse403 | PostMessagesResponse404] |