Exemplo n.º 1
0
        public async Task <Node> GetNode(string nodeId)
        {
            string          endpoint = string.Format("node/{0}", nodeId);
            NodeGetResponse response = await GetRequest <NodeGetResponse>(SMUGMUG_API_v2_ApiEndpoint, endpoint);

            return(response.Node);
        }
Exemplo n.º 2
0
        public async Task <Node> GetRootNode(User user)
        {
            if (user != null)
            {
                string          endpoint = user.Uris.Node.Uri;
                NodeGetResponse response = await GetRequest <NodeGetResponse>(endpoint);

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