Mynewsdesk technical documentation

Links

Introduction

Mynewsdesk Webservice for newsroom is a way for you, as a registered customer, to fetch information from your newsroom at Mynewsdesk to any system. You can get all your information as XML and create email subscriptions to your material.

The webservice is built around simple GET/POST requests over HTTP, to keep it simple to implement and be as platform independent as possible. Your response will be XML and HTTP status codes.

Before you can use the service, you need to have it activated by us and receive your unique key. The key is used in all requests for authentication.

http://www.mynewsdesk.com/services/pressroom/service/unique key/?parameter=value&parameter=value

The URL pattern above is used for all services. The name of each of the services, and their parameters are listed below.

Services

This is a list of the features available in the latest version of Webservice for pressroom.

list - List material

http://www.mynewsdesk.com/services/pressroom/list/unique key/?[type_of_media=pressrelease|news|blog_post|event|image|video|document|contact_person]&[limit=limit]&[offset=offset]&[order=published|updated|created]&[format=xml|rss|json]

Accepts

HTTP GET request.

Returns

XML or RSS over HTTP. Status code "200 OK" on successful request. Status code "404 Not Found" if no material was found. The result is returned as RSS if "format=rss" is specified, or as JSON if "format=json" is specified.

Optional parameters

view - View single material

http://www.mynewsdesk.com/services/pressroom/view/unique key/?[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 no material was found. Format is JSON or XML.

Required parameters

Optional parameters

search - Search material

http://www.mynewsdesk.com/services/pressroom/search/unique key/?[query=query]&[type_of_media=pressrelease|news|blog_post|event|image|video|document|contact_person]&[limit=limit]&[page=page]&[date_mode=between|on|before|after]&[date_start=date]&[date_end=date]&[date_on=date]&[format=xml|rss|json]

Accepts

HTTP GET request.

Returns

XML or RSS over HTTP. Status code "200 OK" on successful request. The result is returned as RSS if "format=rss" is specified, or as JSON if "format=json" is specified.

Optional parameters

XML structure for search

subscribe - Create subscription

http://www.mynewsdesk.com/services/pressroom/subscribe/unique key/?[newsdesk_subscriber_email=email-address]&[newsdesk_subscribe_to_[pressreleases|news|blog_posts|events|images|videos|documents|contact_people]=1]

Accepts

HTTP POST request.

Returns

Status code "200 OK" on successful request. Status code "422 Unprocessable Entity" if the subscription could not be created.

Required parameters

Optional parameters

send_email - Send material as email

http://www.mynewsdesk.com/services/pressroom/send_email/unique key

Accepts

HTTP POST request.

Returns

Status code "200 OK" on successful request. Status code "422 Unprocessable Entity" on invalid request.

Required parameters

Optional parameters

This method sends an email message to the recipient, with a link to the material and an optional message from the sender.

pressroom_info - View pressroom information

http://www.mynewsdesk.com/services/pressroom/pressroom_info/unique key?[pressroom=se|no|en]

Accepts

HTTP GET request.

Returns

Status code "200 OK" on successful request. Status code "404 Not Found" if no pressroom was found.

Optional parameters

The XML returned includes a tag cloud, pressroom description, press contacts etc - as on your pressroom on www.mynewsdesk.com.

A "tag cloud" is a visual representation of the frequency of tags in your pressroom, on a scale from 1-5. More popular tags are displayed in a larger font.

XML structure for pressroom

create_comment - Create comment

http://www.mynewsdesk.com/services/pressroom/create_comment/unique key

Accepts

HTTP POST request.

Returns

Status code "200 OK" on successful request. Status code "422 Unprocessable Entity" if comment could not be created.

Required parameters

Optional parameters