Example #1
0
        public static async Task <User> getPointHistory(User user, string startDate, string endDate, Nullable <int> limit, string cursor)
        {
            User tempUser = new User();

            tempUser.id = user.id;

            string route = !String.IsNullOrEmpty(tempUser.id) ? APIRoutes.pointHistoryWithUserIdRoute(tempUser.id, startDate, endDate, limit, cursor) :
                           APIRoutes.pointHistoryWithExternalIdRoute(tempUser.external_id, startDate, endDate, limit, cursor);

            SMResponse m = await AsyncClient.get(route);

            return(m == null ? null : m.GetUserResponseModel());
        }