public request_client ( System.Boolean _secure ) : string | ||
_secure | System.Boolean | |
Результат | string |
public string request_client(Boolean _secure) {
string strhttps = "https";
string strhttp = "http";
if (_secure) {
return strhttps;
} else {
return strhttp;
}
}
/** * do process authorization * * @param array $options Authorization options */ public AccessToken authenticate(AuthorizationCode options) { string authenticate_url = null; authenticate_url = _client.request_client(_client.secure) + "://" + _client.host + _client.path + "/" + _client.api_version + "/oauth/token/"; _accesstoken = new AccessToken(); return(_accesstoken.getAccessToken(authenticate_url, options)); }