usersListSocialAccountsForUser
List social accounts for a user
Details
- Method:
GET - Path:
/users/{username}/social_accounts - Operation ID:
users/list-social-accounts-for-user
Parameters
{
"username": {
"description": "The handle for the GitHub user account.",
"required": true,
"location": "path",
"type": "string"
},
"per_page": {
"description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
"required": false,
"location": "query",
"type": "integer"
},
"page": {
"description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"",
"required": false,
"location": "query",
"type": "integer"
}
}Response Schema
{
"type": "array",
"items": {
"title": "Social account",
"description": "Social media account",
"type": "object",
"properties": {
"provider": {
"type": "string",
"example": "linkedin"
},
"url": {
"type": "string",
"example": "https://www.linkedin.com/company/github/"
}
},
"required": [
"provider",
"url"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('usersListSocialAccountsForUser', {
# Add required parameters here
})