Beispiel #1
0
        public MikiApi(string base_url, string token)
        {
            if (_instance == null)
            {
                _instance = this;
            }

            this.token = token;
            baseUrl    = base_url;
        }
Beispiel #2
0
        public MikiApi(string base_url, string token)
        {
            if (Instance == null)
            {
                Instance = this;
            }

            this._token = token;
            _baseUrl    = base_url;

            _client = new RestClient(_baseUrl);
            _client.SetAuthorization(token);
        }
Beispiel #3
0
        public MikiApi(string base_url, string token)
        {
            if (_instance == null)
            {
                _instance = this;
            }

            this.token = token;
            baseUrl    = base_url;

            client = new RestClient(baseUrl);
            client.SetAuthorization(token);
        }