Get Multiple Publishing Jobs

Retrieves all publishing jobs.

Request

Request syntax:

GET /syndication-jobs

Response

The response for a successful request contains the following properties:

NameData TypeDescription
@idStringIndicates the relative path to the requested endpoint.
@typeStringReturns Collection.
itemsList of dictionariesContains a list of publishing jobs.
total_itemsIntegerIndicates the total number of publishing jobs.

items List

The items list describes each publishing job via the following properties:

NameData TypeDescription
content_descriptionStringIndicates the name of the live channel or live event identified by the content_id parameter.
content_idStringIdentifies a live channel or live event by its system-defined ID.
content_typeStringIndicates whether the content_id parameter identifies a live channel or a live event. Valid values are: e: Live Event c: Live Channel
descriptionStringIndicates the name of the publishing target.
idStringIdentifies this publishing job by its system-defined ID.
job_statusStringIndicates a publishing job's status. Valid values are: activeIndicates that one or more publishing schedules that leverage this publishing target are in the active state.stoppedIndicates that none of the publishing schedules that leverage this publishing target are in the active or error state.errorIndicates that one or more publishing schedules that leverage this publishing target are in the error state.
platformStringIdentifies a social media or content distribution platform by its name. Valid values are: FacebookYouTubeTwitchPeriscope ZixiOther
regionStringIndicates the publishing job's publishing location by its system-defined ID. Use the Get All Publishing Locations endpoint to retrieve a list of publishing locations and their system-defined IDs.
region_auto_selectedBooleanIndicates whether the publishing job's publishing location was auto selected.
startStringIndicates the timestamp, in Unix time (milliseconds), at which the publishing job was started.
stopStringIndicates the timestamp, in Unix time (milliseconds), for either of the following conditions: Active Publishing Schedule: Reports one year from the start time. Stopped Publishing Schedule: Reports the timestamp at which the publishing job was stopped.
syndication_target_idStringIdentifies a publishing target by its system-defined ID.
target_protocolStringIndicates the protocol through which your content will be published. Valid values are: rtmprtmpshlshls-pullzixisrtrist

Sample Request/Response

Call the get_multiple_publishing_jobs module (Python 3) to retrieve publishing jobs. This module imports names from the api_auth module.

import requests
from api_auth import APICredentials, APIParams

class PublishingJob:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._get_publishing_jobs()

    def _get_publishing_jobs(self):
        url = "{}{}".format(self.host, "/api/v4/syndication-jobs")

        headers = {'Content-Type': 'application/json'}

        response = requests.get(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )

        print(response.json())

PublishingJob().run()

Response:

{
	'@id': '/api/v4/syndication-jobs',
	'@type': 'Collection',
	'items': [{
			'@id': '/api/v4/syndication-jobs/23248d5c270340ca86ca7a36e155e794',
			'@type': 'SyndicationData',
			'id': '23248d5c270340ca86ca7a36e155e794',
			'start': '',
			'stop': '1630236590416',
			'syndication_target_id': '7caf1c6c67d041ad8210e7e493be781f',
			'status': 'stopped',
			'content_id': 'gn2df67cbcf24e74bf564816ebecc0fg',
			'content_type': 'c',
			'syndication_target_description': 'Events',
			'syndication_target_platform': 'Facebook',
			'syndication_target_protocol': 'rtmp',
			'content_description': 'Sales'
		}, {
			'@id': '/api/v4/syndication-jobs/4806d5badf5349f9823f358993611ebc',
			'@type': 'SyndicationData',
			'id': '4806d5badf5349f9823f358993611ebc',
			'start': '',
			'stop': '1629717143701',
			'syndication_target_id': 'e5464aeab08245eeb28bfed8470731g6',
			'status': 'stopped',
			'content_id': '6b2df67cbcf24e74bf564816ebecc44k',
			'content_type': 'c',
			'syndication_target_description': 'Conferences',
			'syndication_target_platform': 'YouTube',
			'syndication_target_protocol': 'rtmp',
			'content_description': 'Marketing'
		}
	],
	'total_items': 2
}