public function getFeedPost($channelIdentifier, $postId, $accessToken, $comments = 5)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($postId)) {
            throw new InvalidTypeException('Post ID', 'string', gettype($postId));
        }

        if (!is_int($comments)) {
            throw new InvalidTypeException('Comments', 'integer', gettype($comments));
        }

        $params = [
            'comments' => $comments,
        ];

        return $this->get(sprintf('feed/%s/posts/%s', $channelIdentifier, $postId), $params, $accessToken);
    }
public function getFeedPost($channelIdentifier, $postId, $accessToken, $comments = 5)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($postId)) {
            throw new InvalidTypeException('Post ID', 'string', gettype($postId));
        }

        if (!is_int($comments)) {
            throw new InvalidTypeException('Comments', 'integer', gettype($comments));
        }

        $params = [
            'comments' => $comments,
        ];

        return $this->get(sprintf('feed/%s/posts/%s', $channelIdentifier, $postId), $params, $accessToken);
    }
public function getFeedPost ( $ channelIdentifier , $ postId , $ accessToken , $ comments = 5 ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } if ( ! is_string ( $ postId ) ) { throw new InvalidTypeException ( 'Post ID' , 'string' , gettype ( $ postId ) ) ; } if ( ! is_int ( $ comments ) ) { throw new InvalidTypeException ( 'Comments' , 'integer' , gettype ( $ comments ) ) ; } $ params = [ 'comments' => $ comments , ] ; return $ this -> get ( sprintf ( 'feed/%s/posts/%s' , $ channelIdentifier , $ postId ) , $ params , $ accessToken ) ; }
Get a feed post

@param string|int $channelIdentifier
@param string     $postId
@param string     $accessToken
@param int        $comments
@throws InvalidIdentifierException
@throws InvalidTypeException
@return array|json
Get a feed post