示例#1
0
        /// <summary>
        /// Given a known contact ID (saved in localstorage), find user, and save into our local database (just as a backup - not really necessary)
        /// </summary>
        public static Fan FindUserByContactID(int touchPointContactID)
        {
            var response = SendTouchpointRequest(Http.GET, "contacts/" + touchPointContactID + "?attributes=*", null);
            var fan      = Fan.LoadByTouchpointContactID(touchPointContactID);

            if (fan == null)
            {
                fan = new Fan();
                UpdateLocalFan(fan, response);
            }
            return(fan);
        }