Source/FreesoundAPI.cpp
void FreesoundClient::authenticationOnBrowser(int mode, Callback cb)
{
	URL url;
	if(mode == 0){url = URIS::uri(URIS::LOGOUT_AUTHORIZE, StringArray());}
	else{url = URIS::uri(URIS::AUTHORIZE, StringArray()); }
	url = url.withParameter("client_id", clientID);
	url = url.withParameter("response_type", "code");
	url.launchInDefaultBrowser();
	cb();
}
//Function for doing the authorization, the mode selects between LOGOUT_AUTHORIZE(0) and AUTHORIZE(1)
Function for doing the authorization, the mode selects between LOGOUT_AUTHORIZE(0) and AUTHORIZE(1)
Function for doing the authorization the mode selects between LOGOUT_AUTHORIZE ( 0 ) and AUTHORIZE ( 1 )
void FreesoundClient::authenticationOnBrowser(int mode, Callback cb)
{
	URL url;
	if(mode == 0){url = URIS::uri(URIS::LOGOUT_AUTHORIZE, StringArray());}
	else{url = URIS::uri(URIS::AUTHORIZE, StringArray()); }
	url = url.withParameter("client_id", clientID);
	url = url.withParameter("response_type", "code");
	url.launchInDefaultBrowser();
	cb();
}
void FreesoundClient :: authenticationOnBrowser ( int mode , Callback cb ) { URL url ; if ( mode == 0 ) { url = URIS :: uri ( URIS :: LOGOUT_AUTHORIZE , StringArray ( ) ) ; } else { url = URIS :: uri ( URIS :: AUTHORIZE , StringArray ( ) ) ; } url = url . withParameter ( " " , clientID ) ; url = url . withParameter ( " " , " " ) ; url . launchInDefaultBrowser ( ) ; cb ( ) ; }
Function for doing the authorization, the mode selects between LOGOUT_AUTHORIZE(0) and AUTHORIZE(1)
Function for doing the authorization the mode selects between LOGOUT_AUTHORIZE ( 0 ) and AUTHORIZE ( 1 )