Skip to content

Latest commit

 

History

History
191 lines (122 loc) · 5.14 KB

File metadata and controls

191 lines (122 loc) · 5.14 KB

postiz_python_client.MessagesApi

All URIs are relative to http://localhost

Method HTTP request Description
messages_controller_create_message POST /messages/{groupId}
messages_controller_get_messages GET /messages/{groupId}/{page}
messages_controller_get_messages_group GET /messages

messages_controller_create_message

messages_controller_create_message(group_id, body)

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.MessagesApi(api_client)
    group_id = 'group_id_example' # str | 
    body = None # object | 

    try:
        api_instance.messages_controller_create_message(group_id, body)
    except Exception as e:
        print("Exception when calling MessagesApi->messages_controller_create_message: %s\n" % e)

Parameters

Name Type Description Notes
group_id str
body object

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
201 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

messages_controller_get_messages

messages_controller_get_messages(group_id, page)

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.MessagesApi(api_client)
    group_id = 'group_id_example' # str | 
    page = 'page_example' # str | 

    try:
        api_instance.messages_controller_get_messages(group_id, page)
    except Exception as e:
        print("Exception when calling MessagesApi->messages_controller_get_messages: %s\n" % e)

Parameters

Name Type Description Notes
group_id str
page str

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

messages_controller_get_messages_group

messages_controller_get_messages_group()

Example

import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = postiz_python_client.MessagesApi(api_client)

    try:
        api_instance.messages_controller_get_messages_group()
    except Exception as e:
        print("Exception when calling MessagesApi->messages_controller_get_messages_group: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]