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


C# Authentication.oAuthLinkedIn类代码示例

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


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

示例1: 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

示例2: GetJobSearchTitle

        /// <summary>
        /// The Job Search API enables search across LinkedIn's job postings Title Wise.
        /// </summary>
        /// <param name="OAuth"></param>
        /// <param name="Title"></param>
        /// <param name="Count"></param>
        /// <returns></returns>
        public List<Jobdetail> GetJobSearchTitle(oAuthLinkedIn OAuth, string Title, int Count)
        {
            Jobdetail job_result = new Jobdetail();

            Jobs jobsearch = new Jobs();

            xmlResult = jobsearch.Get_JobSearchTitle(OAuth, Title, Count);

            XmlNodeList xmlNodeList = xmlResult.GetElementsByTagName("job");

            foreach (XmlNode xn in xmlNodeList)
            {
                XmlElement Element = (XmlElement)xn;


                try
                {
                    job_result.Company = Element.GetElementsByTagName("name")[0].InnerText;
                }
                catch  { }

                try
                {
                    job_result.Headline = Element.GetElementsByTagName("headline")[0].InnerText;
                }
                catch { }
               

                try
                {
                    job_result.FirstName = Element.GetElementsByTagName("first-name")[0].InnerText;
                }
                catch { }

                try
                {
                    job_result.LastName = Element.GetElementsByTagName("last-name")[0].InnerText;
                }
                catch { }
               

                try
                {
                    job_result.Description = Element.GetElementsByTagName("description-snippet")[0].InnerText;
                }
                catch { }

                try
                {
                    job_result.Location = Element.GetElementsByTagName("location-description")[0].InnerText;
                }
                catch { }

                JobDetailList.Add(job_result);
            }

            

            return JobDetailList;
        }
开发者ID:prog-moh,项目名称:socioboard-core,代码行数:67,代码来源:LinkedInJob.cs

示例3: 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

示例4: 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

示例5: GetUserProfile

 public void GetUserProfile(oAuthLinkedIn OAuth, string LinkedinUserId, Guid user)
 {
     LinkedInProfile objLinkedInProfile = new LinkedInProfile();
     LinkedInProfile.UserProfile objUserProfile = new LinkedInProfile.UserProfile();
     objUserProfile = objLinkedInProfile.GetUserProfile(OAuth);
     GetLinkedInUserProfile(objUserProfile, OAuth, user, LinkedinUserId);
 }
开发者ID:JBNavadiya,项目名称:socioboard,代码行数:7,代码来源:LinkedInHelper.cs

示例6: 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

示例7: 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

示例8: linkedincompanypagetest

 public void linkedincompanypagetest()
 {
     oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
     string authLink = Linkedin_oauth.AuthorizationLinkGet();
     Session["reuqestToken"] = Linkedin_oauth.Token;
     Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;
     Response.Redirect(authLink);
 }
开发者ID:utkarshx,项目名称:socioboard,代码行数:8,代码来源:Default.aspx.cs

示例9: 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

示例10: 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

示例11: AuthenticateLinkedin

        public void AuthenticateLinkedin(object sender, EventArgs e)
        {
            oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
            string authLink = Linkedin_oauth.AuthorizationLinkGet();
            Session["reuqestToken"] = Linkedin_oauth.Token;
            Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;

            Response.Redirect(authLink);
        }
开发者ID:utkarshx,项目名称:socioboard,代码行数:9,代码来源:Publishing.aspx.cs

示例12: 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

示例13: SetCommentOnPost

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

             string url = "https://api.linkedin.com/v1/posts/" + postid + "/comments";

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

示例14: 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

示例15: 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


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