Accounts

To work with your associated social account, you need to use the following endpoint:


GET

/accounts 
/account/status/:id
/account/delete/:id

GET /accounts

Returns a list of your social account.

Example Request

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

Example Response

[
  {
    "id": "170",
    "nickname": "Socialpilot",    
    "url": "http://www.linkedin.com/company/",
    "status": "Running",
    "account_type": "linkedin-pages"
  },
  {
    "id": "178",
    "nickname": "Mobile Apps",
    "url": "http://www.linkedin.com/groups?gid=3757736&trk=api*a3588611*s3660551*",
    "status": "Paused",
    "account_type": "linkedin-group"
  },
]

GET /account/status/:id

Use to toggle social media profile status between running & paused.

Parameters

:id required integer It should be your account id to toggle the status.

Example Request

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

Example Response

{
    "error":0,
    "data":{
        "new_status":"Running"
    }
}

Example Error Response

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

GET /account/delete/:id

Use to delete an associated social media profile from account.

Parameters

:id required integer It should be your account id to delete.

Example Request

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

Example Response

{
    "error": 0,
}

Example Error Response

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