Group

To work with your groups, you need to use the following endpoint:


GET

/groups
/group/delete/:id

GET /groups

Returns a list of your groups.


Example Request

GET https://panel.socialpilot.co/oauth/groups?access_token=<YOUR ACCESS TOKEN>

Example Response

[
  {
    "id": "35",
    "group_name": "First Group",
    "accounts": [
      {
        "id": 170,
        "nickname":"Socialpilot",
        "url":"http:\/\/www.twitter.com\/Socialpilot",
        "status":"Running",
        "account_type":"twitter"
      }
    ]
  },
  {
    "id": "36",
    "group_name": "Second Group",
    "accounts": [
      {
        "id": 178,
        "nickname": "Mobile Apps",
        "url":"http:\/\/www.twitter.com\/Socialpilot",
        "status":"Running",
        "account_type":"twitter"
      }
    ]
  }
]

GET /group/delete/:id

Use to delete a group from account.

Parameters

:id required integer It should be your group id which you want to delete.

Example Request

GET https://panel.socialpilot.co/oauth/group/delete/100543?access_token=<YOUR ACCESS TOKEN>

Example Response

{
    "error": 0,
}

Example Error Response

{
    "error": 1,
    "msg": "Something went wrong. Try again later"
}