Mynewsdesk technical documentation

New in version 1.0.3

New in version 1.0.2

New in version 1.0.1

New in version 1.0

Links

Introduction – channel API

Our webservice for fetching material from the Partner channel service is built around simple GET/POST requests over HTTP. The response is XML and HTTP status codes.

In order to use the service, you need your unique key. You will use this key in all requests for authentication. You can find your unique key, and the ID of your respective channels when you log in at http://www.mynewsdesk.com/partner.

Create an account

If you don't have a partner account, you can register one here: http://www.mynewsdesk.com/partner/signup.

URL

To list your channels, including channel ID, this root URL is used:

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel

To access material in a channel, the following URL is used:

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID/material/service/?parameter=value&parameter=value

Services

material/list - List material

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID|all*/material/list/?[type_of_media=pressreleases|news|blog_posts|events|images|videos|documents|contact_people]&[start_at=YYYY-MM-DD HH:MM]&[end_at=YYYY-MM-DD HH:MM]&[source_id=id|meta_key=id|organization_number=org-nr]&[limit=limit]&[offset=offset]&[format=rss|xml]&[order=published|updated|created]

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "400 Bad Request" if invalid parameters were used.

Required parameters

Optional parameters


* Specify "all" instead of channel ID to list material from all your channels.  New

** Only one parameter marked by two asterisks is allowed.

material/view - View single material

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID/material/view/?[item_id=id]&[type_of_media=pressrelease|news|blog_post|event|image|video|document|contact_person]

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "404 Not Found" if the material could not be found. Status code "400 Bad Request" if invalid parameters were used.

Required parameters

Optional parameters

material/test_list - List test data

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID|all/material/test_list/?[type_of_media=pressreleases|news|blog_posts|events|images|videos|documents|contact_people]&[limit=limit]&[format=rss|xml]&[order=published|updated|created]

Use this method to test your implementation, if your channel is empty. It returns recently published material on Mynewsdesk, independently of your channel.

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "404 Not Found" if the material could not be found. Status code "400 Bad Request" if invalid parameters were used.

Required parameters

Optional parameters

material/test_view - View single test data

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID/material/test_view/?[type_of_media=pressrelease|news|blog_posts|event|image|video|document|contact_person]

Use this method to test your implementation, if your channel is empty. It returns recently published material on Mynewsdesk, independently of your channel.

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "404 Not Found" if the material could not be found. Status code "400 Bad Request" if invalid parameters were used.

Required parameters

Optional parameters

pressroom/list - List pressrooms (only membership channels)

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID/pressroom/list/

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "400 Bad Request" if invalid parameters were used.

Parameters

pressroom/view - View single pressroom (only membership channel)

http://www.mynewsdesk.com/partner/api/1_0/unique key/channel/channel ID/pressroom/view/?[pressroom_id=id]

Accepts

HTTP GET request.

Returns

XML over HTTP. Status code "200 OK" on successful request. Status code "404 Not Found" if the material could not be found. Status code "400 Bad Request" if invalid parameters were used.

Required parameters