Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Latest commit

 

History

History
1231 lines (905 loc) · 41.9 KB

File metadata and controls

1231 lines (905 loc) · 41.9 KB

clientapi_atrocore.ChannelApi

All URIs are relative to https://demo.atropim.com/api/v1

Method HTTP request Description
add_relation_for_channel POST /Channel/{link}/relation Add relation for Channel
create_channel_item POST /Channel Create a record of the Channel
delete_channel_item DELETE /Channel/{id} Delete a record of the Channel
follow_channel PUT /Channel/{id}/subscription Follow the Channel stream
get_channel_item GET /Channel/{id} Returns a record of the Channel
get_linked_items_for_channel_item GET /Channel/{id}/{link} Returns linked entities for the Channel
get_list_of_channel_items GET /Channel Returns a collection of Channel records
link_channel POST /Channel/{id}/{link} Link Channel to Entities
mass_delete_channel POST /Channel/action/massDelete Mass delete of Channel data
mass_update_channel PUT /Channel/action/massUpdate Mass update of Channel data
remove_relation_for_channel DELETE /Channel/{link}/relation Remove relation for Channel
unfollow_channel DELETE /Channel/{id}/subscription Unfollow the Channel stream
unlink_channel DELETE /Channel/{id}/{link} Unlink Channel from Entities
update_channel_item PUT /Channel/{id} Update a record of the Channel

add_relation_for_channel

bool add_relation_for_channel(link, ids, foreign_ids)

Add relation for Channel

Add relation for Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 
    foreign_ids = ['foreign_ids_example'] # List[str] | 

    try:
        # Add relation for Channel
        api_response = api_instance.add_relation_for_channel(link, ids, foreign_ids)
        print("The response of ChannelApi->add_relation_for_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->add_relation_for_channel: %s\n" % e)

Parameters

Name Type Description Notes
link str
ids List[str]
foreign_ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

create_channel_item

Channel create_channel_item(create_channel_item_request)

Create a record of the Channel

Create a record of the Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.channel import Channel
from clientapi_atrocore.models.create_channel_item_request import CreateChannelItemRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    create_channel_item_request = clientapi_atrocore.CreateChannelItemRequest() # CreateChannelItemRequest | 

    try:
        # Create a record of the Channel
        api_response = api_instance.create_channel_item(create_channel_item_request)
        print("The response of ChannelApi->create_channel_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->create_channel_item: %s\n" % e)

Parameters

Name Type Description Notes
create_channel_item_request CreateChannelItemRequest

Return type

Channel

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

delete_channel_item

bool delete_channel_item(id)

Delete a record of the Channel

Delete a record of the Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 

    try:
        # Delete a record of the Channel
        api_response = api_instance.delete_channel_item(id)
        print("The response of ChannelApi->delete_channel_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->delete_channel_item: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

follow_channel

FollowAccount200Response follow_channel(id)

Follow the Channel stream

Follow the Channel stream

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.follow_account200_response import FollowAccount200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 

    try:
        # Follow the Channel stream
        api_response = api_instance.follow_channel(id)
        print("The response of ChannelApi->follow_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->follow_channel: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

FollowAccount200Response

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_channel_item

Channel get_channel_item(id, language=language)

Returns a record of the Channel

Returns a record of the Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.channel import Channel
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)

    try:
        # Returns a record of the Channel
        api_response = api_instance.get_channel_item(id, language=language)
        print("The response of ChannelApi->get_channel_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->get_channel_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
language str Set this parameter for data to be returned for a specified language [optional]

Return type

Channel

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_linked_items_for_channel_item

GetLinkedItemsForAccountItem200Response get_linked_items_for_channel_item(id, link, language=language)

Returns linked entities for the Channel

Returns linked entities for the Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.get_linked_items_for_account_item200_response import GetLinkedItemsForAccountItem200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)

    try:
        # Returns linked entities for the Channel
        api_response = api_instance.get_linked_items_for_channel_item(id, link, language=language)
        print("The response of ChannelApi->get_linked_items_for_channel_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->get_linked_items_for_channel_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
language str Set this parameter for data to be returned for a specified language [optional]

Return type

GetLinkedItemsForAccountItem200Response

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_list_of_channel_items

GetListOfChannelItems200Response get_list_of_channel_items(language=language, select=select, where=where, offset=offset, max_size=max_size, sort_by=sort_by, asc=asc)

Returns a collection of Channel records

Returns a collection of Channel records

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.get_list_of_channel_items200_response import GetListOfChannelItems200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)
    select = 'name,createdAt' # str | Available fields: attributes, attributesIds, attributesNames, categories, categoriesIds, categoriesNames, classificationAttributes, classificationAttributesIds, code, createdAt, createdBy, createdById, createdByName, deleted, description, descriptionDeDe, filterCreateImportJob, filterUpdateImportJob, id, isActive, locales, modifiedAt, modifiedBy, modifiedById, modifiedByName, name, nameDeDe, productAssets, productAssetsIds, productAttributeValues, productAttributeValuesIds, productChannels, productChannelsIds, productChannels_product, productChannels_productIds, productChannels_productNames, type (optional)
    where = None # List[object] | There are a lot of filter types supported. You can learn all of them if you trace what's requested by Atro UI in the network tab in your browser console (press F12 key to open the console). (optional)
    offset = 0 # int |  (optional)
    max_size = 50 # int |  (optional)
    sort_by = 'name' # str |  (optional)
    asc = true # bool |  (optional)

    try:
        # Returns a collection of Channel records
        api_response = api_instance.get_list_of_channel_items(language=language, select=select, where=where, offset=offset, max_size=max_size, sort_by=sort_by, asc=asc)
        print("The response of ChannelApi->get_list_of_channel_items:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->get_list_of_channel_items: %s\n" % e)

Parameters

Name Type Description Notes
language str Set this parameter for data to be returned for a specified language [optional]
select str Available fields: attributes, attributesIds, attributesNames, categories, categoriesIds, categoriesNames, classificationAttributes, classificationAttributesIds, code, createdAt, createdBy, createdById, createdByName, deleted, description, descriptionDeDe, filterCreateImportJob, filterUpdateImportJob, id, isActive, locales, modifiedAt, modifiedBy, modifiedById, modifiedByName, name, nameDeDe, productAssets, productAssetsIds, productAttributeValues, productAttributeValuesIds, productChannels, productChannelsIds, productChannels_product, productChannels_productIds, productChannels_productNames, type [optional]
where List[object] There are a lot of filter types supported. You can learn all of them if you trace what's requested by Atro UI in the network tab in your browser console (press F12 key to open the console). [optional]
offset int [optional]
max_size int [optional]
sort_by str [optional]
asc bool [optional]

Return type

GetListOfChannelItems200Response

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

link_channel

bool link_channel(id, link, link_account_request)

Link Channel to Entities

Link Channel to Entities

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.link_account_request import LinkAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    link_account_request = clientapi_atrocore.LinkAccountRequest() # LinkAccountRequest | 

    try:
        # Link Channel to Entities
        api_response = api_instance.link_channel(id, link, link_account_request)
        print("The response of ChannelApi->link_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->link_channel: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
link_account_request LinkAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

mass_delete_channel

bool mass_delete_channel(link_account_request)

Mass delete of Channel data

Mass delete of Channel data

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.link_account_request import LinkAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    link_account_request = clientapi_atrocore.LinkAccountRequest() # LinkAccountRequest | 

    try:
        # Mass delete of Channel data
        api_response = api_instance.mass_delete_channel(link_account_request)
        print("The response of ChannelApi->mass_delete_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->mass_delete_channel: %s\n" % e)

Parameters

Name Type Description Notes
link_account_request LinkAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

mass_update_channel

bool mass_update_channel(mass_update_account_request)

Mass update of Channel data

Mass update of Channel data

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.mass_update_account_request import MassUpdateAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    mass_update_account_request = clientapi_atrocore.MassUpdateAccountRequest() # MassUpdateAccountRequest | 

    try:
        # Mass update of Channel data
        api_response = api_instance.mass_update_channel(mass_update_account_request)
        print("The response of ChannelApi->mass_update_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->mass_update_channel: %s\n" % e)

Parameters

Name Type Description Notes
mass_update_account_request MassUpdateAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

remove_relation_for_channel

bool remove_relation_for_channel(link, ids, foreign_ids)

Remove relation for Channel

Remove relation for Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 
    foreign_ids = ['foreign_ids_example'] # List[str] | 

    try:
        # Remove relation for Channel
        api_response = api_instance.remove_relation_for_channel(link, ids, foreign_ids)
        print("The response of ChannelApi->remove_relation_for_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->remove_relation_for_channel: %s\n" % e)

Parameters

Name Type Description Notes
link str
ids List[str]
foreign_ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

unfollow_channel

bool unfollow_channel(id)

Unfollow the Channel stream

Unfollow the Channel stream

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 

    try:
        # Unfollow the Channel stream
        api_response = api_instance.unfollow_channel(id)
        print("The response of ChannelApi->unfollow_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->unfollow_channel: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

unlink_channel

bool unlink_channel(id, link, ids)

Unlink Channel from Entities

Unlink Channel from Entities

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 

    try:
        # Unlink Channel from Entities
        api_response = api_instance.unlink_channel(id, link, ids)
        print("The response of ChannelApi->unlink_channel:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->unlink_channel: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

update_channel_item

Channel update_channel_item(id, create_channel_item_request)

Update a record of the Channel

Update a record of the Channel

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.channel import Channel
from clientapi_atrocore.models.create_channel_item_request import CreateChannelItemRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.ChannelApi(api_client)
    id = 'id_example' # str | 
    create_channel_item_request = clientapi_atrocore.CreateChannelItemRequest() # CreateChannelItemRequest | 

    try:
        # Update a record of the Channel
        api_response = api_instance.update_channel_item(id, create_channel_item_request)
        print("The response of ChannelApi->update_channel_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling ChannelApi->update_channel_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
create_channel_item_request CreateChannelItemRequest

Return type

Channel

Authorization

Authorization-Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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