GET /api/v4/current_social_accounts
Get social accounts info by current ids

Query params example

/api/v4/current_social_accounts?type=twitter&ids[]=9&ids[]=10

Success response body

[
  {
    "id": 9,
    "name": "NAME",
    "nickname": "",
    "logo": "https://LINK_TO_ACC_LOGO.jpg",
    "user_refer": "personal"
  },
  {
    "id": 10,
    "name": "NAME",
    "nickname": "",
    "logo": "https://LINK_TO_ACC_LOGO.jpg",
    "user_refer": "workspace"
  },
  ...
]

Params

Param name Description
type
required

Validations:

  • Must be one of: twitter, facebook, instagram.

ids
required

Validations:

  • Must be an array of Integer


PUT api/v4/current_social_accounts/:id/refresh_avatar
Refresh avatar link

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "url": URL
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

type
required

Validations:

  • Must be one of: facebook, instagram.