Пример #1
0
        public async Task <UserProfile> GetUserProfile(string userNickName)
        {
            string endpoint = string.Format("user/{0}!profile", userNickName);
            UserProfileGetResponse response = await GetRequest <UserProfileGetResponse>(SMUGMUG_API_v2_ApiEndpoint, endpoint);

            return(response.UserProfile);
        }
Пример #2
0
        public async Task <UserProfile> GetUserProfile(User user)
        {
            if (user != null)
            {
                string endpoint = user.Uris.UserProfile.Uri;
                UserProfileGetResponse response = await GetRequest <UserProfileGetResponse>(endpoint);

                return(response.UserProfile);
            }
            else
            {
                throw new ArgumentNullException("user");
            }
        }