Social Networks
Get social network profiles for a company.
View as MarkdownReturns a list of social network profiles associated with the specified company.
Endpoint
GET /api/v1/companies/:company_id/social_networksParameters
| Parameter | Type | In | Description |
|---|---|---|---|
company_id | integer | path | The unique identifier of the company. |
Code Examples
Get social networks
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/social_networks'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"social_networks": [
{
"url": "https://instagram.com/company",
"type": "instagram"
},
{
"url": "https://facebook.com/company",
"type": "facebook"
}
]
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}