コード例 #1
0
ファイル: Company.cs プロジェクト: kuggaa/SociaBoard
        public string SetCommentOnPagePost(oAuthLinkedIn oauth, string PageId, string Updatekey, string comment)
        {
            string url      = "https://api.linkedin.com/v1/companies/" + PageId + "/updates/key=" + Updatekey + "/update-comments-as-company";
            string response = oauth.LinkedCompanyPagePostWebRequest("POST", url, comment);

            return(response);
        }
コード例 #2
0
        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;
            string url      = "https://api.linkedin.com/v1/companies/" + PageId + "/updates/key=" + Updatekey + "/update-comments-as-company";
            string response = oauth.LinkedCompanyPagePostWebRequest("POST", url, comment);

            return(response);
        }