public function updateAuthorization($id, $scopes = null, $add_scopes = null, $remove_scopes = null, $note = null, $note_url = null, $fingerprint = null)
	{
		$data = array();
		if(!is_null($scopes))
			$data['scopes'] = $scopes;
		if(!is_null($add_scopes))
			$data['add_scopes'] = $add_scopes;
		if(!is_null($remove_scopes))
			$data['remove_scopes'] = $remove_scopes;
		if(!is_null($note))
			$data['note'] = $note;
		if(!is_null($note_url))
			$data['note_url'] = $note_url;
		if(!is_null($fingerprint))
			$data['fingerprint'] = $fingerprint;
		
		return $this->client->request("/authorizations/$id", 'PATCH', $data, 201, 'GitHubOauthAccess');
	}
public function updateAuthorization($id, $scopes = null, $add_scopes = null, $remove_scopes = null, $note = null, $note_url = null, $fingerprint = null)
	{
		$data = array();
		if(!is_null($scopes))
			$data['scopes'] = $scopes;
		if(!is_null($add_scopes))
			$data['add_scopes'] = $add_scopes;
		if(!is_null($remove_scopes))
			$data['remove_scopes'] = $remove_scopes;
		if(!is_null($note))
			$data['note'] = $note;
		if(!is_null($note_url))
			$data['note_url'] = $note_url;
		if(!is_null($fingerprint))
			$data['fingerprint'] = $fingerprint;
		
		return $this->client->request("/authorizations/$id", 'PATCH', $data, 201, 'GitHubOauthAccess');
	}
public function updateAuthorization ( $ id , $ scopes = null , $ add_scopes = null , $ remove_scopes = null , $ note = null , $ note_url = null , $ fingerprint = null ) { $ data = array ( ) ; if ( ! is_null ( $ scopes ) ) $ data [ 'scopes' ] = $ scopes ; if ( ! is_null ( $ add_scopes ) ) $ data [ 'add_scopes' ] = $ add_scopes ; if ( ! is_null ( $ remove_scopes ) ) $ data [ 'remove_scopes' ] = $ remove_scopes ; if ( ! is_null ( $ note ) ) $ data [ 'note' ] = $ note ; if ( ! is_null ( $ note_url ) ) $ data [ 'note_url' ] = $ note_url ; if ( ! is_null ( $ fingerprint ) ) $ data [ 'fingerprint' ] = $ fingerprint ; return $ this -> client -> request ( "/authorizations/$id" , 'PATCH' , $ data , 201 , 'GitHubOauthAccess' ) ; }
Create a new authorization

@param $scopes array (Optional) - Replaces the authorization scopes with these.
@param $add_scopes array (Optional) - A list of scopes to add to this authorization.
@param $remove_scopes array (Optional) - A list of scopes to remove from this
authorization.
@param $note string (Optional) - A note to remind you what the OAuth token is for.
@param $note_url string (Optional) - A URL to remind you what app the OAuth token is for.
@param $fingerprint string (Optional) - A unique string to distinguish an authorization from others created for the same client ID and user.
@return GitHubOauthAccess
Create a new authorization