Advocacy
Advocates
Manage employees who promote your company on social media through the advocacy board.
Advocates are employees or other individuals who promote your company on their personal social media channels. In Oktopost, advocates are system users who are members of an advocacy board. Use these endpoints to retrieve advocates, add new members to boards, and manage advocate participation in your advocacy program.
Advocates require an Oktopost user account to access the advocacy board. When adding advocates, ensure they have been invited to the platform first.
Get Advocate
The boardId parameter is optional. If provided, the response will include Topics and LatestShares.
Example Request
curl -i https://api.oktopost.com/v2/advocate/00A000000000001?boardId=brd000000000001Example Result
{
"Result": true,
"Advocate": {
"Id": "00A000000000000",
"Created": "2012-03-25 18:48:32",
"Modified": "2018-09-26 13:27:55",
"Status": "active",
"Name": "Liad Guez",
"FirstName": "Liad",
"LastName": "Guez",
"Email": "liad@oktopost.com",
"PictureUrl": null,
"LastBoardLogin": "2018-09-12 17:18:42",
"Profiles": [
{
"Id": "003-001000000000000-10795428XXXXXXXXX",
"Created": "2015-10-26 21:02:30",
"Name": "Oktopost's Twitter",
"Status": "valid",
"Network": "Twitter",
"ImageLink": "valid",
"NetworkUsername": "oktopost"
}
],
"BoardIds": [
"brd000000000001"
],
"Topics": [
"tpc000000000001"
],
"LatestShares": [
{
"Id": "004000000000000",
"Created": "2018-09-12 18:29:42",
"CreatedBy": "00A000000000000",
"Network": "Twitter",
"CredentialId": "003-001000000000000-10795428XXXXXXXXX",
"CredentialImage": "...",
"Message": "Good Vs. Bad #SocialMedia Management Platforms: 5 Capabilities You Need to Build a Data-Driven #B2BMarketing Team",
"ImageUrl": "",
"LinkUrl": "",
"LinkTitle": "",
"Description": "",
"Picture": null,
"Type": "status-update",
"Media": null,
"StartDateTime": "2018-09-12 18:29:38",
"EndDateTime": "2019-03-13 03:59:59",
"Status": "complete",
"Source": "Board",
"TargetGeo": ""
}
]
}
}List Advocates
Example Request
curl -i https://api.oktopost.com/v2/advocateExample Result
{
"Result": true,
"Items":[
{
"Email": "saul@goodman.com",
"Id": "00A000000000001",
"LastBoardLogin": "2018-04-15 10:03:11",
"Name": "Jimmy Mcgill",
"PictureUrl": null
},
...
],
"Total": 89
}Filter Advocates by email
Example Request
curl -i https://api.oktopost.com/v2/advocate?email=saul%40goodman.comExample Result
{
"Result": true,
"Items":[
{
"Email": "saul@goodman.com",
"Id": "00A000000000001",
"LastBoardLogin": "2018-04-15 10:03:11",
"Name": "Jimmy Mcgill",
"PictureUrl": null
}
]
"Total": 1
}Invite Advocates
Example Request
curl -i https://api.oktopost.com/v2/advocate -X POST \
-d firstName="Jimmy" \
-d lastName="Mcgill" \
-d email="saul@goodman.com" \
-d boardId="brd000000000001"Example Result
{
"Result": true
}Delete Advocate
Example Request
curl -i https://api.oktopost.com/v2/advocate/00A000000000001?boardId=brd000000000001 -X DELETEExample Result
{
"Result": true
}