Skip to content

Latest commit

 

History

History
1141 lines (726 loc) · 29.8 KB

File metadata and controls

1141 lines (726 loc) · 29.8 KB

postiz_python_client.PostsApi

All URIs are relative to http://localhost

Method HTTP request Description
posts_controller_change_date PUT /posts/{id}/date
posts_controller_create_comment POST /posts/{id}/comments
posts_controller_create_post POST /posts
posts_controller_create_tag POST /posts/tags
posts_controller_delete_post DELETE /posts/{group}
posts_controller_edit_tag PUT /posts/tags/{id}
posts_controller_find_slot GET /posts/find-slot
posts_controller_find_slot_integration GET /posts/find-slot/{id}
posts_controller_generate_posts POST /posts/generator
posts_controller_generate_posts_draft POST /posts/generator/draft
posts_controller_get_marketplace_posts GET /posts/marketplace/{id}
posts_controller_get_post GET /posts/{id}
posts_controller_get_posts GET /posts
posts_controller_get_statistics GET /posts/{id}/statistics
posts_controller_get_tags GET /posts/tags
posts_controller_old_posts GET /posts/old
posts_controller_predict_trending GET /posts/predict-trending
posts_controller_separate_posts POST /posts/separate-posts
posts_controller_should_shortlink POST /posts/should-shortlink

posts_controller_change_date

posts_controller_change_date(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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]

posts_controller_create_comment

posts_controller_create_comment(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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
201 -

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

posts_controller_create_post

posts_controller_create_post()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_create_post()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_create_post: %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
201 -

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

posts_controller_create_tag

posts_controller_create_tag(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.PostsApi(api_client)
    body = None # object | 

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

Parameters

Name Type Description Notes
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]

posts_controller_delete_post

posts_controller_delete_post(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.PostsApi(api_client)
    group = 'group_example' # str | 

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

Parameters

Name Type Description Notes
group 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]

posts_controller_edit_tag

posts_controller_edit_tag(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.PostsApi(api_client)
    id = 'id_example' # str | 
    body = None # object | 

    try:
        api_instance.posts_controller_edit_tag(id, body)
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_edit_tag: %s\n" % e)

Parameters

Name Type Description Notes
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
200 -

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

posts_controller_find_slot

posts_controller_find_slot()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_find_slot()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_find_slot: %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]

posts_controller_find_slot_integration

posts_controller_find_slot_integration(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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]

posts_controller_generate_posts

posts_controller_generate_posts(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.PostsApi(api_client)
    body = None # object | 

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

Parameters

Name Type Description Notes
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]

posts_controller_generate_posts_draft

posts_controller_generate_posts_draft(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.PostsApi(api_client)
    body = None # object | 

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

Parameters

Name Type Description Notes
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]

posts_controller_get_marketplace_posts

posts_controller_get_marketplace_posts(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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]

posts_controller_get_post

posts_controller_get_post(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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]

posts_controller_get_posts

posts_controller_get_posts()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_get_posts()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_get_posts: %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]

posts_controller_get_statistics

posts_controller_get_statistics(id)

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.PostsApi(api_client)
    id = 'id_example' # str | 

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

Parameters

Name Type Description Notes
id 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]

posts_controller_get_tags

posts_controller_get_tags()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_get_tags()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_get_tags: %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]

posts_controller_old_posts

posts_controller_old_posts(var_date)

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.PostsApi(api_client)
    var_date = 'var_date_example' # str | 

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

Parameters

Name Type Description Notes
var_date 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]

posts_controller_predict_trending

posts_controller_predict_trending()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_predict_trending()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_predict_trending: %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]

posts_controller_separate_posts

posts_controller_separate_posts()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_separate_posts()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_separate_posts: %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
201 -

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

posts_controller_should_shortlink

posts_controller_should_shortlink()

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.PostsApi(api_client)

    try:
        api_instance.posts_controller_should_shortlink()
    except Exception as e:
        print("Exception when calling PostsApi->posts_controller_should_shortlink: %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
201 -

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