public function accept($account, $repo, $id, $params = array())
    {
        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/pullrequests/%d/merge', $account, $repo, $id),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function accept($account, $repo, $id, $params = array())
    {
        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/pullrequests/%d/merge', $account, $repo, $id),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function accept ( $ account , $ repo , $ id , $ params = array ( ) ) { return $ this -> getClient ( ) -> setApiVersion ( '2.0' ) -> post ( sprintf ( 'repositories/%s/%s/pullrequests/%d/merge' , $ account , $ repo , $ id ) , json_encode ( $ params ) , array ( 'Content-Type' => 'application/json' ) ) ; }
Accept and merge a pull request

@access public
@param  string           $account The team or individual account owning the repository.
@param  string           $repo    The repository identifier.
@param  int              $id      (Optional) ID of the pull request
@param  array            $params  Additional parameters.
@return MessageInterface
Accept and merge a pull request