public async Task <User> GetAuthenticatedUser() { string endpoint = "/api/v2!authuser"; UserGetResponse response = await GetRequest <UserGetResponse>(endpoint); return(response.User); }
public async Task <User> GetSiteUser() { string endpoint = "/api/v2!siteuser"; UserGetResponse response = await GetRequest <UserGetResponse>(endpoint); return(response.User); }
public async Task <User> GetUser(string userNickName) { string endpoint = string.Format("user/{0}", userNickName); UserGetResponse response = await GetRequest <UserGetResponse>(SMUGMUG_API_v2_ApiEndpoint, endpoint); return(response.User); }