Пример #1
0
        void Authenticate()
        {
            string datastring = _serializer.Serialize(new { apikey = _apiKey });
            var    response   = _http.Post("/login", datastring);

            if (response.Succeeded)
            {
                var responseObject = _serializer.DynamicDeserialize(response.ResponseData);
                _http.AddBearerAuthentication((string)responseObject.token);
                IsAuthenticated = true;
            }
        }