Beispiel #1
0
        private GraphNode GetNode(NetworkInfo info, string userId)
        {
            var p = new Dictionary <string, string>();

            p.Add("username", userId);
            var url = info.ApiRoot + info.GetEndpoint("profile").GetURI(p);

            var s = Util.Get(url);

            return(ParseNode(userId, s));
        }
Beispiel #2
0
        private List <GraphLink> GetLinks(NetworkInfo info, string userid)
        {
            try
            {
                var p = new Dictionary <string, string>();
                p.Add("username", userid);
                var url = info.ApiRoot + info.GetEndpoint("links").GetURI(p);

                var s = Util.Get(url);
                return(ParseLinks(s, userid));
            }
            catch
            {
                return(new List <GraphLink>());
            }
        }