예제 #1
0
        public async Task <User> GetAuthenticatedUser()
        {
            string          endpoint = "/api/v2!authuser";
            UserGetResponse response = await GetRequest <UserGetResponse>(endpoint);

            return(response.User);
        }
예제 #2
0
        public async Task <User> GetSiteUser()
        {
            string          endpoint = "/api/v2!siteuser";
            UserGetResponse response = await GetRequest <UserGetResponse>(endpoint);

            return(response.User);
        }
예제 #3
0
        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);
        }