Beispiel #1
0
        internal static bool LogoutUser()
        {
            var headers = new Dictionary <string, string>();

            headers["X-accessToken"] = AccessToken;
            var httpRequester      = new HttpRequester(BaseServicesUrl);
            var isLogoutSuccessful = httpRequester.Put("users/logout", headers);

            return(isLogoutSuccessful);
        }
Beispiel #2
0
        internal static void ChangeState(int todoId)
        {
            var headers = new Dictionary <string, string>();

            headers["X-accessToken"] = AccessToken;

            var httpRequester = new HttpRequester(BaseServicesUrl);

            httpRequester.Put("todos/" + todoId, headers);
        }