Ejemplo n.º 1
0
        public async Task <DictModel> Login(string email, string password)
        {
            DictModel dict = new DictModel("user");

            dict.Add("email", email);
            dict.Add("password", password);

            DictModel response = await MakeRequestAsync(Globals.SESSIONS_URI, dict, RequestMethod.POST);

            response.EnsureValid();
            string authentication_token = response.d("user").s("authentication_token", true);

            RegisterAuthenticationToken(authentication_token);
            return(response);
        }