Yammer API to filter threads/ posts by admin of that group or community

%3CLINGO-SUB%20id%3D%22lingo-sub-2229406%22%20slang%3D%22en-US%22%3EYammer%20API%20to%20filter%20threads%2F%20posts%20by%20admin%20of%20that%20group%20or%20community%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2229406%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Folks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20find%20a%20yammer%20API%20which%20filters%20the%20posts%20in%20a%20group%20which%20is%20posted%20only%20by%20the%20admin%20of%20that%20specific%20group.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ECurrently%20using%20the%20below%20API%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv2%2Fnetworks%2F%7Bnetwork_id%7D%2Ffeeds%2Fgroup%2F%7Bgroup_id%7D%3Finclude_thread_starter%3Dtrue%26amp%3Bthreads_count%3D20%26amp%3Binclude_pinned_threads%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv2%2Fnetworks%2F%7Bnetwork_id%7D%2Ffeeds%2Fgroup%2F%7Bgroup_id%7D%3Finclude_thread_starter%3Dtrue%26amp%3Bthreads_count%3D20%26amp%3Binclude_pinned_threads%3Dtrue%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20PowerShell%20command%20%2C%20i%20pass%20the%20body%20as%20below%3CBR%20%2F%3E%3CBR%20%2F%3E%24response%20%3D%20Invoke-WebRequest%20-Uri%20%24feedAPIUrl%20-Headers%20%24headers%20-Method%20Post%20-Body%20%24requestBody%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ewhere%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%24feedAPIUrl%20is%20the%20above%20URL%3CBR%20%2F%3E%3CBR%20%2F%3E%24headers%20%3D%20%40%7B%20Authorization%3D(%22Bearer%20%22%20%2B%20%24yammerAccessToken)%20%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%24requestBody%20%3D%20%22feed(threads(thread_id%2Cis_announcement%2Cmessages(id%2Ccreated_at)%2Cpin_data(pinned_by%2Cpinned_at%2Cexpires_at)))%22%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20response%20does%20not%20contain%20whether%20it%20is%20posted%20by%20admin%20or%20members.%20Like%20the%20one%20we%20have%20for%20groups%20(is_group_admin)%20for%20the%20api%20-%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroups%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fgroups%2F%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22pl-smi%22%3E%24GroupId%3C%2FSPAN%3E%3CSPAN%3E%2F......%20%2C%20do%20we%20have%20something%20similar%20to%20filter%20posts%20posted%20by%20Admin(s).%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20and%20references%20are%20much%20obliged.%20Thanks%20in%20advance.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ENaveen%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2229406%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor

Hi Folks,

 

I am trying to find a yammer API which filters the posts in a group which is posted only by the admin of that specific group. 

Currently using the below API
https://www.yammer.com/api/v2/networks/{network_id}/feeds/group/{group_id}?include_thread_starter=tr...

With PowerShell command , i pass the body as below

$response = Invoke-WebRequest -Uri $feedAPIUrl -Headers $headers -Method Post -Body $requestBody


where  

$feedAPIUrl is the above URL

$headers = @{ Authorization=("Bearer " + $yammerAccessToken) }

$requestBody = "feed(threads(thread_id,is_announcement,messages(id,created_at),pin_data(pinned_by,pinned_at,expires_at)))"

The response does not contain whether it is posted by admin or members. Like the one we have for groups (is_group_admin) for the api - https://www.yammer.com/api/v1/groups/$GroupId/...... , do we have something similar to filter posts posted by Admin(s).

Any help and references are much obliged. Thanks in advance.

Best Regards,
Naveen

0 Replies