Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Post Tweet API

Mike Soldner edited this page · 11 revisions
Clone this wiki locally

This API adds a single tweet to a StreamHub Collection that has access to StreamHub: Curate.

Resource

GET http://quill.{network}/api/v3.0/collection/{collectionId}/post/tweet

  • {network} - Your StreamHub Network name, e.g. 'labs.fyre.co'
  • {collectionId} - The ID of the Collection you want info about, e.g. '10633838'. The Collection must be a part of a Network or Site with StreamHub: Curate enabled.

Parameters

The request body should contain the following parameters encoded as application/x-www-form-urlencoded

Parameter Type Description
lftoken String A Livefyre Authentication Token for the user adding a tweet to the Collection
tweet_id Integer The twitter-allocated Tweet ID of a Tweet to add to the Collection. For example, the `tweet_id` for this tweet is `305857291998081025`.

Example

curl "http://quill.labs-t402.fyre.co/api/v3.0/collection/10633838/post/tweet" -d "lftoken=mylftoken" -d "tweet_id=305857291998081025"

Response

{
  "status": "ok",
  "code": 200,
  "data": {
    "messages": [
      {
        "content": {
          "replaces": "",
          "bodyHtml": "Anymore - Finally",
          "annotations": {

          },
          "authorId": "174958347@twitter.com",
          "parentId": "",
          "updatedAt": 1361999678,
          "mentions": [

          ],
          "shareLink": "http:\/\/admin.fyre\/.fyreit\/f9yjMI.4",
          "id": "tweet-305935191757684736@twitter.com",
          "createdAt": 1361999678
        },
        "vis": 1,
        "source": 0,
        "replies": [

        ],
        "type": 0,
        "event": null
      }
    ],
    "authors": {
      "174958347@twitter.com": {
        "displayName": "Horse ebooks",
        "tags": [

        ],
        "profileUrl": "http:\/\/twitter.com\/#!\/Horse_ebooks",
        "avatar": "http:\/\/a0.twimg.com\/profile_images\/1096005346\/1_normal.jpg",
        "type": 3,
        "id": "174958347@twitter.com"
      }
    }
  }
}
Something went wrong with that request. Please try again.