Instructions to Reset your password have been emailed to the specified email address.
Please check your SPAM folder if you do not receive an email from us within the next 15 mins.
Outbox

Post item API calls

CREATE Post

Create a post

Method

POST /posts/create

Request

POST https://www.getstacker.com/posts/create?access_token={access_token}

Parameters

channel_ids
integer
Channel ids to which the post belongs to
required
message
string
Post body content
required
link
string
Url you want to share
optional
e.g. www.getstacker.com
picture
string
Upload image url
optional
share_now
integer
Share post without adding to Outbox queue
optional
Allowed values [0, 1]
create_album
integer
Create Facebook album
optional
Allowed values [0, 1]
album_name
string
Facebook album name
optional
Max length [64 characters]
custom_time
date
Schedule post at a custom date and time
optional
Date format [Y-m-d h:i:s]

Response
{
  "status": "success",
  "data": {
    "post_id": [
      4189,
      4190
    ],
    "f_channel_post": [
      {
        "channel_id": "129",
        "post_id": 4189,
        "type": 3
      },
      {
        "channel_id": "180",
        "post_id": 4190,
        "type": 2
      }
    ],
    "errorMessages": [],
    "errorMsgPerChannel": {},
    "params": {
      "message": "This is a test post via the Stacker API",
      "hash": "f884359c37d84b090f8e4a84bcb22e64",
      "is_processed": 0,
      "created_time": "2014-07-25 12:05:23",
      "updated_time": "2014-07-25 12:05:23",
      "channel": 2,
      "channel_id": "180",
      "post_id": 4190,
      "creator_id": "68",
      "creator_name": "Neil Coutinho",
      "display_time": "2014-07-25 19:52:00",
      "utc_post_time": "2014-07-25 14:22:00"
    }
  }
}



COPY Post

Copy a post from one channel to another

Method

POST /posts/copy

Request

POST https://www.getstacker.com/posts/copy?access_token={access_token}

Parameters

channel_id
integer
Channel id to which the post is copied to
required
post_id
integer
Id of the post to be copied
required

Response
{
  "status": "success",
  "data": {
    "post_id": [
      4193
    ],
    "f_channel_post": [
      {
        "channel_id": "129",
        "post_id": 4193,
        "type": 3
      }
    ],
    "errorMessages": [],
    "errorMsgPerChannel": {},
    "params": {
      "message": "This is a copied post",
      "hash": "582e90cf1f5da4b198a7264cea176a7c",
      "is_processed": 0,
      "created_time": "2014-07-25 12:14:52",
      "updated_time": "2014-07-25 12:14:52",
      "channel": 3,
      "channel_id": "129",
      "post_id": 4193,
      "creator_id": "68",
      "creator_name": "Luke Skywalker",
      "display_time": "2014-07-25 20:01:00",
      "utc_post_time": "2014-07-25 14:31:00"
    }
  }
}



UPDATE Post

Update a post item

Method

POST /posts/update

Request

POST https://www.getstacker.com/posts/update?access_token={access_token}

Parameters


id
integer
Id of the post to be updated
required
link
string
Url you want to share
optional
e.g. www.getstacker.com
update_mapped
integer
Update all connected posts
optional
Allowed values [0, 1]
share_now
integer
Share post without adding to Outbox queue
optional
Allowed values [0, 1]
create_album
integer
Create Facebook album
optional
Allowed values [0, 1]
album_name
string
Facebook album name
optional
Max length [64 characters]
custom_time
date
Schedule post at a custom date and time
optional
Date format [Y-m-d h:i:s]

Response
{
  "status": "success",
  "data": "Post updated"
}



REORDER Posts

Re-order posts in a channel

Method

POST /posts/reorder

Request

POST https://www.getstacker.com/posts/reorder?access_token={access_token}

Parameters

channel_id
integer
Channel id that the posts belong to
required
order
string
Post ids underscore separated
required
e.g. 3_1_2

Response
{
   "status":"success",
    "data":{
            "message":"Order updated",
            "channel_id":"180",
            "order":"4201_4199_4200"
           }
}



DELETE POSTS

Delete posts from Outbox

Method

DELETE /posts/delete

Request

DELETE https://www.getstacker.com/posts/delete?access_token={access_token}

Parameters

channel_id
integer
Channel id of the post item
required
post_id
integer
Post id to be deleted
required
delete_mapped
integer
Delete connected posts
optional,
Allowed values [0, 1]

Response
{
  "status":"success",
  "data":"Post deleted"
}



APPROVE Post

Approve posts in Outbox created by collaborators

Method

POST /posts/approvePost

Request

POST https://www.getstacker.com/posts/approvePost?access_token={access_token}

Parameters

channel_id
integer
Channel id which the post belongs to
required
post_id
integer
Id of the post to be approved
required

Response
{
   "status":"success",
   "data":"Post approved successfully."
}



DISAPPROVE Post

Disapprove a post created by a collaborator

Method

POST /posts/disapprovePost

Request

POST https://www.getstacker.com/posts/disapprovePost?access_token={access_token}

Parameters

channel_id
integer
Channel id that the post belongs to
required
post_id
integer
Post id to be disapproved
required
message
string
Reason for disapproving post
optional

Response
{
  "status": "success",
  "data": {
    "message": "second test for dis-approval"
  }
}



SHARE Post

Share post immediately

Method

POST /posts/shareNow

Request

POST https://www.getstacker.com/posts/shareNow?access_token={access_token}

Parameters

channel_id
integer
Channel id that the post belongs to
required
post_id
integer
Post id to be shared
required

Response
{
  "status":"success",
  "data":"Post updated"
}



GET Posts

Get Outbox post items

Method

GET /posts/get

Request

GET https://www.getstacker.com/posts/get?access_token={access_token}

Parameters

channel_id
integer
Channel id that the posts belongs to
required

Response
{
  "status": "success",
  "data": {
    "channels": {
      "180": [
        {
          "message": "Hello world",
          "hash": "99a233e67156812c9681c22c78e91aaa",
          "is_processed": 0,
          "created_time": "2014-07-28 04:01:27",
          "updated_time": "2014-07-28 04:01:27",
          "channel": 2,
          "channel_id": "180",
          "post_id": 4199,
          "creator_id": "68",
          "creator_name": "Neil Coutinho",
          "display_time": "2014-07-28 15:35:00",
          "utc_post_time": "2014-07-28 10:05:00",
          "map_ids": 0,
          "is_custom_time": 0
        },
        {
          "message": "I love Stacker so much",
          "hash": "40009bfc144d30fdad95c08223e8430e",
          "is_processed": 0,
          "created_time": "2014-07-28 04:13:26",
          "updated_time": "2014-07-28 04:13:26",
          "channel": 2,
          "channel_id": "180",
          "post_id": 4205,
          "creator_id": "188",
          "creator_name": "Kenrick Vaz",
          "display_time": "2014-07-28 19:52:00",
          "utc_post_time": "2014-07-28 14:22:00",
          "map_ids": 0,
          "is_custom_time": 0
        },
        {
          "message": "You are not alone",
          "hash": "99d076d6b09099f45b3b501952cb9297",
          "is_processed": 0,
          "created_time": "2014-07-28 04:14:22",
          "updated_time": "2014-07-28 04:14:22",
          "channel": 2,
          "channel_id": "180",
          "post_id": 4206,
          "to_approve": 0,
          "creator_id": "188",
          "creator_name": "Darth Vader",
          "display_time": "2014-07-29 08:01:00",
          "utc_post_time": "2014-07-29 02:31:00",
          "map_ids": 0,
          "is_custom_time": 0
        }
      ],
      "214": [],

    },
    "errorPosts": {
      "129": [],
      "180": [],

    },
    "postsToApprove": {
      "129": [],
    }
  }
}



GET Links

Get all links in a post

Method

GET /posts/getLinks

Request

GET https://www.getstacker.com/posts/getLinks?access_token={access_token}

Parameters

post_id
integer
Id of the post item
required

Response
{
  "status": "success",
  "data": [
    {
      "short_link": "sta.cr/PWx",
      "link": "http://www.getstacker.com"
    },
    {
      "short_link": "sta.cr/PWx",
      "link": "http://www.getstacker.com"
    },
    {
      "short_link": "sta.cr/PYx",
      "link": "http://www.Jquery.com"
    }
  ]
}



POST Add to Stack

Queue post in Outbox

Method

POST /posts/addToStack

Request

POST https://www.getstacker.com/posts/addToStack?access_token={access_token}

Parameters

post_id
integer
Id of the post item
required

Response
{
  "status": "success",
  "data": "Post stacked successfully."
}