src/WordpressClient.php
function getPost($postId, array $fields = array())
    {
        if (empty($fields)) {
            $params = array(1, $this->username, $this->password, $postId);
        } else {
            $params = array(1, $this->username, $this->password, $postId, $fields);
        }

        return $this->sendRequest('wp.getPost', $params);
    }
function getPost($postId, array $fields = array())
    {
        if (empty($fields)) {
            $params = array(1, $this->username, $this->password, $postId);
        } else {
            $params = array(1, $this->username, $this->password, $postId, $fields);
        }

        return $this->sendRequest('wp.getPost', $params);
    }
function getPost ( $ postId , array $ fields = array ( ) ) { if ( empty ( $ fields ) ) { $ params = array ( 1 , $ this -> username , $ this -> password , $ postId ) ; } else { $ params = array ( 1 , $ this -> username , $ this -> password , $ postId , $ fields ) ; } return $ this -> sendRequest ( 'wp.getPost' , $ params ) ; }
Retrieve a post of any registered post type.

@param integer $postId the id of selected post
@param array   $fields (optional) list of field or meta-field names to include in response.

@return array
@link http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.getPosts
Retrieve a post of any registered post type .