public function getOrCreateAuthorizationForAppAndFingerprint($scopes = null, $note = null, $note_url = null, $client_id = null, $client_secret = null, $fingerprint = null)
	{
		$data = array();
		if(!is_null($scopes))
			$data['scopes'] = $scopes;
		if(!is_null($note))
			$data['note'] = $note;
		if(!is_null($note_url))
			$data['note_url'] = $note_url;
		if(!is_null($client_secret))
			$data['client_secret'] = $client_secret;
		
		return $this->client->request("/authorizations/clients/$client_id/$fingerprint", 'PUT', $data, array(200, 201), 'GitHubOauthAccess');
	}
public function getOrCreateAuthorizationForAppAndFingerprint($scopes = null, $note = null, $note_url = null, $client_id = null, $client_secret = null, $fingerprint = null)
	{
		$data = array();
		if(!is_null($scopes))
			$data['scopes'] = $scopes;
		if(!is_null($note))
			$data['note'] = $note;
		if(!is_null($note_url))
			$data['note_url'] = $note_url;
		if(!is_null($client_secret))
			$data['client_secret'] = $client_secret;
		
		return $this->client->request("/authorizations/clients/$client_id/$fingerprint", 'PUT', $data, array(200, 201), 'GitHubOauthAccess');
	}
public function getOrCreateAuthorizationForAppAndFingerprint ( $ scopes = null , $ note = null , $ note_url = null , $ client_id = null , $ client_secret = null , $ fingerprint = null ) { $ data = array ( ) ; if ( ! is_null ( $ scopes ) ) $ data [ 'scopes' ] = $ scopes ; if ( ! is_null ( $ note ) ) $ data [ 'note' ] = $ note ; if ( ! is_null ( $ note_url ) ) $ data [ 'note_url' ] = $ note_url ; if ( ! is_null ( $ client_secret ) ) $ data [ 'client_secret' ] = $ client_secret ; return $ this -> client -> request ( "/authorizations/clients/$client_id/$fingerprint" , 'PUT' , $ data , array ( 200 , 201 ) , 'GitHubOauthAccess' ) ; }
Get-or-create an authorization for a specific app and fingerprint

@param $scopes array (Optional) - Replaces the authorization scopes with these.
@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 $client_id string (Optional) - The 20 character OAuth app client key for which to create the token.
@param $client_secret string (Optional) - The 40 character OAuth app client secret for which to create the token.
@param $fingerprint string (Optional) - A unique string to distinguish an authorization from others created for the same client ID and user.
@return GitHubOauthAccess
Get - or - create an authorization for a specific app and fingerprint