{"id":16772,"date":"2020-07-28T09:43:20","date_gmt":"2020-07-28T09:43:20","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=16772"},"modified":"2022-04-13T15:58:36","modified_gmt":"2022-04-13T15:58:36","slug":"how-to-post-form-data-from-php-7-using-linkedin-api","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-post-form-data-from-php-7-using-linkedin-api\/","title":{"rendered":"How to post form data from PHP 7 using LinkedIn API?"},"content":{"rendered":"\n<p>In Previous blog <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.devopsschool.com\/blog\/how-to-login-from-php-7-using-linkedin-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Click Here<\/a>  We also learned that How to Sign-in or <strong>login<\/strong> from PHP 7 using LinkedIn API. So, In this blog, I am going to post or send form data from PHP using Linkedin API. In the previous blog, I already Install &#8220;<strong>composer require guzzlehttp\/guzzle:^7.0<\/strong>&#8221; and create a <strong>Linkedin API<\/strong> and Sign In &amp; Login from Linkedin API. So, Let&#8217;s start to describe In this blog I am creating a page &#8220;<strong>profile.php<\/strong>&#8221; for after <strong>Login<\/strong> in Linkedin so return in &#8220;<strong>profile.php<\/strong>&#8221; like Mention below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/1cec63c5390eb58374c321e29c160105.js\"><\/script>\n\n\n\n<h3 class=\"wp-block-heading\">Output-<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"520\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/profile-page.png\" alt=\"\" class=\"wp-image-16775\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/profile-page.png 651w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/profile-page-300x240.png 300w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/figure>\n\n\n\n<p>When you click to <strong>proceed button<\/strong> for then &#8220;<strong>redirector.php<\/strong>&#8221; and <strong>re-director<\/strong> page will return you in &#8220;<strong>gettextpost.php<\/strong>&#8221; mention below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/4f391a3345af342c33a90242733bdde5.js\"><\/script>\n\n\n\n<p>After click<strong> Share button<\/strong> for Post the redirect to &#8220;<strong>gettextpost.php<\/strong>&#8221; so this page data mention below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/e11add20218fc828f10975370f600aad.js\"><\/script>\n\n\n\n<h3 class=\"wp-block-heading\">Output-<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"665\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/form.png\" alt=\"\" class=\"wp-image-16776\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/form.png 641w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/form-289x300.png 289w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<p>When you <strong>submit button<\/strong> this form the redirect to &#8220;<strong>posttextpost.php<\/strong>&#8221; so this page date mention below-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/607d50c44911fd59eb0dac5f2210b03b.js\"><\/script>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Output-<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"189\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/after-submit-page.png\" alt=\"\" class=\"wp-image-16777\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/after-submit-page.png 484w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/after-submit-page-300x117.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"157\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/linkedin-post.png\" alt=\"\" class=\"wp-image-16778\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/linkedin-post.png 407w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/07\/linkedin-post-300x116.png 300w\" sizes=\"auto, (max-width: 407px) 100vw, 407px\" \/><\/figure>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_65677\"><iframe loading=\"lazy\"  id=\"_ytid_76370\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_65677\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In Previous blog Click Here We also learned that How to Sign-in or login from PHP 7 using LinkedIn API. So, In this blog, I am going to post or&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5150],"tags":[1056,4807,6304,5736,177,6228,5059],"class_list":["post-16772","post","type-post","status-publish","format-standard","hentry","category-php","tag-api","tag-data","tag-form","tag-linkedin","tag-php","tag-php7","tag-post"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/16772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=16772"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/16772\/revisions"}],"predecessor-version":[{"id":24642,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/16772\/revisions\/24642"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=16772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=16772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=16772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}