public function createFeedPost($channelIdentifier, $accessToken, $content, $share = false)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($content)) {
            throw new InvalidTypeException('Content', 'string', gettype($content));
        }

        if (!is_bool($share)) {
            throw new InvalidTypeException('Share', 'boolean', gettype($share));
        }

        $params = [
            'share' => $share,
            'content' => $content,
        ];

        return $this->post(sprintf('feed/%s/posts', $channelIdentifier), $params, $accessToken);
    }
public function createFeedPost($channelIdentifier, $accessToken, $content, $share = false)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($content)) {
            throw new InvalidTypeException('Content', 'string', gettype($content));
        }

        if (!is_bool($share)) {
            throw new InvalidTypeException('Share', 'boolean', gettype($share));
        }

        $params = [
            'share' => $share,
            'content' => $content,
        ];

        return $this->post(sprintf('feed/%s/posts', $channelIdentifier), $params, $accessToken);
    }
public function createFeedPost ( $ channelIdentifier , $ accessToken , $ content , $ share = false ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } if ( ! is_string ( $ content ) ) { throw new InvalidTypeException ( 'Content' , 'string' , gettype ( $ content ) ) ; } if ( ! is_bool ( $ share ) ) { throw new InvalidTypeException ( 'Share' , 'boolean' , gettype ( $ share ) ) ; } $ params = [ 'share' => $ share , 'content' => $ content , ] ; return $ this -> post ( sprintf ( 'feed/%s/posts' , $ channelIdentifier ) , $ params , $ accessToken ) ; }
Create a fedd post

@param string|int $channelIdentifier
@param string     $accessToken
@param string     $content
@param boolean    $share
@throws InvalidIdentifierException
@throws InvalidTypeException
@return array|json
Create a fedd post