GoCoinAPI.Client.request_client C# (CSharp) Method

request_client() public method

public request_client ( System.Boolean _secure ) : string
_secure System.Boolean
return string
    public string request_client(Boolean _secure) {

        string strhttps = "https";
        string strhttp = "http";

        if (_secure) {
            return strhttps;
        } else {
            return strhttp;
        }
    }

Usage Example

Example #1
0
        /**
         * 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));
        }
All Usage Examples Of GoCoinAPI.Client::request_client