I'm trying to flag post-id as job discussion with OAuth PUT :
$post_id = "G-34343-example";
$cmd = "http://api.linkedin.com/v1/posts/{$post_id}/category/code";
$xml = "<?xml version='1.0' encoding='UTF-8'?><code>job</code>";
$this->oauthc->fetch($cmd, $xml, OAUTH_HTTP_METHOD_PUT, array("Content-Type" => "application/xml"));
But I'm getting an error:
Someone know what does it mean?
com.linkedin.common.leo.core.UnauthorizedActionException: Unauthorized change of forum type
Is the user you are connecting with using the API authorized to flag posts in the target group? Have you tried logging in to LinkedIn directly as this user, going to the target forum and attempted to flag a post?