当前位置: 首页>>代码示例>>C#>>正文


C# oAuthLinkedIn.APIWebRequest方法代码示例

本文整理汇总了C#中GlobusLinkedinLib.Authentication.oAuthLinkedIn.APIWebRequest方法的典型用法代码示例。如果您正苦于以下问题:C# oAuthLinkedIn.APIWebRequest方法的具体用法?C# oAuthLinkedIn.APIWebRequest怎么用?C# oAuthLinkedIn.APIWebRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobusLinkedinLib.Authentication.oAuthLinkedIn的用法示例。


在下文中一共展示了oAuthLinkedIn.APIWebRequest方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Get_GroupUpdates

 public XmlDocument Get_GroupUpdates(oAuthLinkedIn OAuth, int Count)
 {
     string response = OAuth.APIWebRequest("GET", Global.GetGroupUpdates, null);
     if (response != "")
         xmlResult.Load(new StringReader(response));
     return xmlResult;
 }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:7,代码来源:ShareAndSocialStream.cs

示例2: GetCommentOnPagePost

 public XmlDocument GetCommentOnPagePost(oAuthLinkedIn oauth, string Updatekey)
 {
     string url = "https://api.linkedin.com/v1/people/~/network/updates/key=" + Updatekey + "/update-comments/";
     string response = oauth.APIWebRequest("GET", url, null);
     XmlResult.Load(new StringReader(response));
     return XmlResult;
 }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:7,代码来源:Company.cs

示例3: SetStatusUpdate

        //public XmlDocument Get_GroupFollowPost(oAuthLinkedIn OAuth,string gppostid)
        //{
        //    string posturl = "https://api.linkedin.com/v1/posts/" + gppostid + "/relation-to-viewer/is-following";

        //    string response = OAuth.APIWebRequest("PUT", posturl, null);
        //    if (response != "")
        //        xmlResult.Load(new StringReader(response));
        //    return xmlResult;
        //}


        /// <summary>
        /// 
        /// </summary>
        /// <param name="OAuth"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        public string SetStatusUpdate(oAuthLinkedIn OAuth, string msg)
        {
            string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
            xml += "<current-status>" + msg + "</current-status>";
            string response = OAuth.APIWebRequest("PUT", Global.StatusUpdate, xml);
            return response;
        }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:24,代码来源:ShareAndSocialStream.cs

示例4: Get_CompanyUpdateById

 public XmlDocument Get_CompanyUpdateById(oAuthLinkedIn OAuth, string CoampanyPageId)
 {
     string url = "https://api.linkedin.com/v1/companies/" + CoampanyPageId + "/updates";
     string response = OAuth.APIWebRequest("GET", url, null);
     XmlResult.Load(new StringReader(response));
     return XmlResult;
 }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:7,代码来源:Company.cs

示例5: GetLikeorNotOnPagePost

 public XmlDocument GetLikeorNotOnPagePost(oAuthLinkedIn oauth, string Updatekey, string PageId)
 {
     string url = "https://api.linkedin.com/v1/companies/" + PageId + "/updates/key=" + Updatekey + "/is-liked/";
     //string url = "https://api.linkedin.com/v1/people/~/network/updates/key=" + Updatekey + "/is-liked/";
     string response = oauth.APIWebRequest("GET", url, null);
     XmlResult.Load(new StringReader(response));
     return XmlResult;
 }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:8,代码来源:Company.cs

示例6: Get_GroupPostData

   public XmlDocument Get_GroupPostData(oAuthLinkedIn OAuth, int Count,string groupid)
   {
       string posturl = "https://api.linkedin.com/v1/groups/" + groupid + "/posts:(creation-timestamp,id,title,summary,creator:(first-name,last-name,picture-url,headline,id),likes,comments,attachment:(image-url,content-domain,content-url,title,summary),relation-to-viewer)?category=discussion&order=recency&count=50";
 
       string response = OAuth.APIWebRequest("GET", posturl, null);
       if (response != "")
           xmlResult.Load(new StringReader(response));
       return xmlResult;
   }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:9,代码来源:ShareAndSocialStream.cs

示例7: SetCommentOnPagePost

        public string SetCommentOnPagePost(oAuthLinkedIn oauth, string PageId, string Updatekey, string comment)
        {
            string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
            xml += " <update-comment><comment>" + comment + "</comment></update-comment>";
            string url = "https://api.linkedin.com/v1/companies/" + PageId + "/updates/key=" + Updatekey + "/update-comments-as-company/";
            string response = oauth.APIWebRequest("POST", url, xml);
            return response;

        }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:9,代码来源:Company.cs

示例8: Get_CompanyProfileById

        public XmlDocument Get_CompanyProfileById(oAuthLinkedIn OAuth, string CoampanyPageId)
        {
            //string url = "https://api.linkedin.com/v1/companies/" + CoampanyPageId + ":(id,name,email-domains,description,founded-year,end-year,locations,Specialties,website-url,status,employee-count-range,industries,company-type,logo-url,square-logo-url,blog-rss-url,num-followers,universal-name,locations:(description),locations:(is-headquarters),locations:(is-active),locations:(address),locations:(address:(street1)),locations:(address:(street2)),locations:(address:(city)),locations:(address:(state)),locations:(address:(postal-code)),locations:(address:(country-code)),locations:(address:(region-code)),locations:(contact-info),locations:(contact-info:(phone1)),locations:(contact-info:(phone2)),locations:(contact-info:(fax)))";
            string url = "https://api.linkedin.com/v1/companies/" + CoampanyPageId + ":(id,name,email-domains,description,founded-year,end-year,locations,Specialties,website-url,status,employee-count-range,industries,company-type,logo-url,square-logo-url,blog-rss-url,num-followers,universal-name)";


            string response = OAuth.APIWebRequest("GET", url, null);
            XmlResult.Load(new StringReader(response));
            return XmlResult;
        }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:10,代码来源:Company.cs

示例9: SetLikeUpdate

         public string SetLikeUpdate(oAuthLinkedIn OAuth, string postid, string msg)
         {
             string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
             xml += " <is-liked>" + msg + "</is-liked>";

             string url = "https://api.linkedin.com/v1/posts/" + postid + "/relation-to-viewer/is-liked";

             string response = OAuth.APIWebRequest("PUT", url, xml);
             return response;
         }
开发者ID:NALSS,项目名称:socioboard,代码行数:10,代码来源:SocialStream.cs

示例10: SetPostUpdate

         public string SetPostUpdate(oAuthLinkedIn OAuth,string groupId, string msg,string title)
         {
             string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
           //  xml += "<current-status>" + msg + "</current-status>";
             xml += "<post><title>" + title + "</title><summary>" + msg + "</summary></post>";

           string url = "http://api.linkedin.com/v1/groups/" + groupId + "/posts";
       
             string response = OAuth.APIWebRequest("POST",url, xml);
             return response;
         }
开发者ID:NALSS,项目名称:socioboard,代码行数:11,代码来源:SocialStream.cs

示例11: SearchPeople

 public XmlDocument SearchPeople(oAuthLinkedIn OAuth,string keyword)
 {
     string response = string.Empty;
     try
     {
         response = OAuth.APIWebRequest("GET", "http://api.linkedin.com/v1/people-search?keyword="+keyword+"sort=distance", null);
     }
     catch { }
         xmlResult.Load(new StringReader(response));
     return xmlResult;
 }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:11,代码来源:PeopleAndConnection.cs

示例12: SetStatusUpdate

         public string SetStatusUpdate(oAuthLinkedIn OAuth, string msg)
         {
             string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
             //xml += "<current-status>" + msg + "</current-status>";
             //string response = OAuth.APIWebRequest("PUT", Global.StatusUpdate, xml);

            xml+= "<share>";
            xml += "<comment>" + msg + "</comment><visibility><code>anyone</code></visibility></share>";
            string response = OAuth.APIWebRequest("POST", "https://api.linkedin.com/v1/people/~/shares", xml);
             return response;
         }
开发者ID:NALSS,项目名称:socioboard,代码行数:11,代码来源:SocialStream.cs

示例13: Get_People_Connection

 public XmlDocument Get_People_Connection(oAuthLinkedIn OAuth)
 {
     string response = string.Empty;
     try
     {
         response = OAuth.APIWebRequest("GET", Global.GetPeopleConnectionUrl, null);
     }
     catch { }
     xmlResult.Load(new StringReader(response));
     return xmlResult;
 }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:11,代码来源:People.cs

示例14: Get_People_Search

 /// <summary>
 /// The People Search API returns information about people.
 /// </summary>
 /// <param name="OAuth"></param>
 /// <param name="keyword"></param>
 /// <returns></returns>
 public XmlDocument Get_People_Search(oAuthLinkedIn OAuth, string keyword)
 {
     string response = string.Empty;
     try
     {
         response = OAuth.APIWebRequest("GET", Global.GetPeopleSearchUrl + keyword + "sort=distance", null);
     }
     catch { }
     xmlResult.Load(new StringReader(response));
     return xmlResult;
 }
开发者ID:socioboard,项目名称:socioboard-core,代码行数:17,代码来源:People.cs

示例15: SetPostOnPage

        public string SetPostOnPage(oAuthLinkedIn oauth, string PageId, string post)
        {

            //string response1 = oauth.APIWebRequest("GET", GlobusLinkedinLib.App.Core.Global.GetCompanyUrl, null);
            //XmlDocument xmlCompany = new XmlDocument();
            //xmlCompany.Load(new StringReader(response1));
            //string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
            //xml += "<share><visibility><code>anyone</code></visibility><comment>"+post+"</comment></share>";

            string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><share><visibility><code>anyone</code></visibility><comment>" + post + "</comment></share>";


            string url = "https://api.linkedin.com/v1/companies/" + PageId + "/shares";
            string response = oauth.APIWebRequest("POST", url, xml);
            return response;

        }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:17,代码来源:Company.cs


注:本文中的GlobusLinkedinLib.Authentication.oAuthLinkedIn.APIWebRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。