Connect social account for brand
Generate OAuth URL for social account connection. Redirect user to this URL to connect social account.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/social-connect
- Returns: OAuth URL - Redirect user to this URL to connect social account
Get All Brands from Customer
GET https://app.brand2social.com/api/api-services/v1/brand-service/social-connect
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | Yes | Bearer token |
brand_id | int | Yes | ID of the brand |
redirect_url | string | Yes | Redirect url |
platform | string | Yes | Options : [ FACEBOOK, INSTAGRAM, YOUTUBE, LINKEDIN, GOOGLEMYBUSINESS ] |
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/social-connect' \
--header 'Authorization: Bearer B2S_dummyToken' \
--data-raw '{
"brand_id": "cust_123",
"redirect_url": "https:/sample.com/redirect-url",
"platform": "FACEBOOK",
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "SUCCESS",
"data": [
{
"url": "https://www.facebook.com/v17.0/dialog/oauth?client_id=xxxxxx&redirect_uri=xxxxx&scope=xxxx&state=xxxxx",
}
]
}