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.
Drafts

API calls for Drafts.

GET Drafts

Return all the drafts for an account

Method

GET /drafts/get

Request

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

Response
  {
          "status": "success",
          "data": {
              "count": 2,
              "drafts": [{
                  "channel_ids": "",
                  "message": "This is my draft post",
                  "is_processed": 0,
                  "created_time": "2014-06-21 12:23:39",
                  "updated_time": "2014-06-21 17:53:39",
                  "draft_id": 198,
              }, {
                  "message": "This is my draft post without any social accounts selected",
                  "is_processed": 0,
                  "created_time": "2014-06-21 12:24:22",
                  "updated_time": "2014-06-21 17:54:22",
                  "draft_id": 199,
                  "rejected_user_id": "68",
                  "rejected_user_name": "Bruce Wayne"
              }],
              "channels": [
                  ...
              ]
          }
      }



CREATE Draft

Create a Draft post

Method

POST /drafts/create

Request

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

Parameters

message
string
Content for the draft
required
channel_ids
string
Drafts created for channels
optional
e.g.[ 1_2_3 ]
create_album
integer
Create a draft post with an album
optional
Allowed values[0,1]
link
string
Url to be shared
optional
e.g. www.getstacker.com
album_name
string
Album name for the draft album post
optional
picture
string
Picture url to be shared
optional
Allowed length [ upto 5000 characters]

Response
  {
      "status": "success",
      "data": {
      "draft_id": 235
      }
   }



UPDATE

Update a single Draft post

Method

POST /drafts/update

Request

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

Parameters

draft_id
integer
Draft id to be updated
required
message
string
Draft content
required
channel_id
string
Social account channel ids
optional
e.g.[ 1_2_3 ]
link
string
Urls to be shared
optional
e.g. www.getstacker.com
create_album
integer
Create a draft post with an album
optional
Allowed values[0,1]
album_name
string
Album name for the draft album post
optional
picture
string
Picture url to be shared
optional
Allowed length [ upto 5000 characters]
add_to_stack
integer
Move the Draft to Outbox queue
optional
Allowed values[0,1]
share_now
integer
Share draft now
optional
Allowed values[0,1]
custom_time
date
Add custom date and time
optional,
Date format[Y-m-d h:i:s]

Response
{
"status": "success",
"data": {
"draft_id": "235"
}
}



DELETE Drafts

Delete a Draft post

Method

DELETE /drafts/delete

Request

DELETE https://www.getstacker.com/drafts/delete?access_token={access_token}&draft_id={draft_id}

Parameters

draft_id
integer
Draft id to be updated
required

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



POST Stack Draft

Add draft to Outbox queue

Method

POST /drafts/add_to_stack

Request

POST https://www.getstacker.com/drafts/add_to_stack?access_token={access_token}&draft_id={draft_id}

Parameters

draft_id
integer
Draft id to be updated
required

Response
   {
      "status": "success",
      "data": {
      "channel_ids": "180",
      "message": "Added to Stack(s)"
      }
  }