Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.75 KB

MessagesApi.md

File metadata and controls

59 lines (40 loc) · 1.75 KB

pipeline_publisher_python.MessagesApi

All URIs are relative to https://localhost

Method HTTP request Description
messages_post POST /messages Creates a message on the pipeline

messages_post

messages_post(message)

Creates a message on the pipeline

Example

from __future__ import print_function
import time
import pipeline_publisher_python
from pipeline_publisher_python.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basic
configuration = pipeline_publisher_python.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = pipeline_publisher_python.MessagesApi(pipeline_publisher_python.ApiClient(configuration))
message = pipeline_publisher_python.Message() # Message | Note: At least one key/value pair for identifiers field is required.

try:
    # Creates a message on the pipeline
    api_instance.messages_post(message)
except ApiException as e:
    print("Exception when calling MessagesApi->messages_post: %s\n" % e)

Parameters

Name Type Description Notes
message Message Note: At least one key/value pair for identifiers field is required.

Return type

void (empty response body)

Authorization

basic

HTTP request headers

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

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