Posting Messages

Endpoint

https://api.tickers.cc/public/v1/postmessage

Request

Key  
apitoken
string, required
The API token.
feedid
integer, required
The id of the target feed.
message
string, required
The text of the message.
title
string, optional
The title of the message.
link
string, optional
A link to a homepage.
imageurl
string, optional
An url to an image, which will be displayed in the message. The backend will download the image from the url and store it on the tickerfeed servers. Therefore, it must be a valid image format (PNG, JPG) and must not be bigger then 2 MB in size. The download will be canceled if it lasts longer then 5 seconds.
imagecredits
string, optional
The credits, which will be display beneath the image.

Response

Key  
messageid
integer
The id of the new message. You can use it to link to it directly on your homepage.

Example

                                    Request
{
  "apitoken": "8B7AC9945F352247BCF5B6B5E401449AA002",
  "feedid": 479,
  "title": "Test Title",
  "message": "This is an awesome test message.",
  "link": "https://tickerfeed.rocks/developer.html",
  "imageurl": "http://img.markobl.com/ilovetickerfeed.png",
  "imagecredits": "MarkoBL"
}
                                    Response
{
  "result":
  {
    "messageid": 172933
  },
  "error": null
}