lib/Github/Api/Authorizations.php
public function create(array $params, $OTPCode = null)
    {
        $headers = null === $OTPCode ? [] : ['X-GitHub-OTP' => $OTPCode];

        return $this->post('/authorizations', $params, $headers);
    }
public function create(array $params, $OTPCode = null)
    {
        $headers = null === $OTPCode ? [] : ['X-GitHub-OTP' => $OTPCode];

        return $this->post('/authorizations', $params, $headers);
    }
public function create ( array $ params , $ OTPCode = null ) { $ headers = null === $ OTPCode ? [ ] : [ 'X-GitHub-OTP' => $ OTPCode ] ; return $ this -> post ( '/authorizations' , $ params , $ headers ) ; }
Create an authorization.

@param array $params
@param null  $OTPCode

@return array
Create an authorization .