{"id":17283,"date":"2020-07-05T17:10:12","date_gmt":"2020-07-05T21:10:12","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/wordpress-to-medium-using-python-code\/"},"modified":"2020-07-05T17:10:12","modified_gmt":"2020-07-05T21:10:12","slug":"wordpress-to-medium-using-python-code","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=17283","title":{"rendered":"WordPress to Medium using Python Code"},"content":{"rendered":"<p>From: <a href=\"https:\/\/medium.com\/@krisshaffer\/a-journey-through-api-programming-part-4-posting-to-medium-ad6e1b243429\">https:\/\/medium.com\/@krisshaffer\/a-journey-through-api-programming-part-4-posting-to-medium-ad6e1b243429<\/a><\/p>\n<p>&quot;from medium import Client import requests client = Client(application_id=&quot;xxxxxxxxxxx&quot;, application_secret=&quot;xxxxxxxxxxxxxxxxxxxxxxxxx&quot;) auth_url = client.get_authorization_url(\u201csecretstate\u201d, \u201c<a href=\"https:\/\/pushpullfork.com\/callback\">https:\/\/pushpullfork.com\/callback<\/a>&quot;, [\u201cbasicProfile\u201d, \u201cpublishPost\u201d])print(auth_url)&quot;<\/p>\n<p>&quot;auth = client.exchange_authorization_code(\u201cXXXXXXXX\u201d, \u201c<a href=\"https:\/\/pushpullfork.com\/callback\">https:\/\/pushpullfork.com\/callback<\/a>&quot;)client.access_token = auth[\u201caccess_token\u201d]user = client.get_current_user()&quot;<\/p>\n<p>&quot;post = client.create_post(user_id=user[&quot;id&quot;], title=&quot;Title&quot;, content=&quot;&lt;h2&gt;Test title&lt;\/h2&gt;&lt;p&gt;Trying to post with the Medium API.&lt;\/p&gt;&quot;, content_format=&quot;html&quot;, publish_status=&quot;draft&quot;)&quot;<\/p>\n<p>*** . *** *** . *** . *** . ***<\/p>\n<p><em><strong><em><strong>Training Courses: <\/strong><a href=\"http:\/\/training.sitestree.com\/\">http:\/\/Training.SitesTree.com<\/a> <\/em><br \/>\nBlog<\/strong>: <a href=\"http:\/\/bangla.salearningschool.com\/\">http:\/\/Bangla.SaLearningSchool.com<\/a>, <a href=\"http:\/\/sitestree.com\">http:\/\/SitesTree.com<\/a><\/em><br \/>\n<em><strong>8112223 Canada Inc\/Justetc<\/strong>: <a href=\"http:\/\/JustEtc.net\">http:\/\/JustEtc.net<\/a><\/em><br \/>\n<em>Youtube: <\/em><a href=\"https:\/\/www.youtube.com\/channel\/UCHrtq0pV8mEuTLGd2-Lp9ig\/playlists\">https:\/\/www.youtube.com\/channel\/UCHrtq0pV8mEuTLGd2-Lp9ig\/playlists<\/a><br \/>\n<em><strong>Medium: <\/strong><\/em><a href=\"https:\/\/medium.com\/@SayedAhmedCanada\">https:\/\/medium.com\/@SayedAhmedCanada<\/a><\/p>\n<p><em><strong>Online Product Database: <\/strong><\/em><a href=\"http:\/\/www.shopforsoul.com\/\">http:\/\/www.shopforsoul.com\/<\/a> (Not For Retail Sales, Not actively Managed)<br \/>\n<em><\/em><br \/>\n<em><strong>Sayed Ahmed<\/strong><br \/>\n<\/em><br \/>\n<em><strong>BSc. Eng. in Comp. Sc. &amp; Eng. (BUET)<\/strong><\/em><br \/>\n<em><strong>MSc. in Comp. Sc. (U of Manitoba, Canada)<\/strong><\/em><br \/>\n<em><strong>MSc. in Data Science and Analytics (Ryerson University, Canada)<\/strong><\/em><br \/>\n<em><strong>Linkedin<\/strong>: <a href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/a><br \/>\n<\/em><\/p>\n<p><em><strong>Facebook Groups\/Forums to discuss (Q &amp; A): <\/strong><\/em><br \/>\n<a href=\"https:\/\/www.facebook.com\/salearningschool\/?ref=your_pages\">https:\/\/www.facebook.com\/salearningschool<\/a><\/p>\n<p><a href=\"https:\/\/www.facebook.com\/banglasalearningschool\">https:\/\/www.facebook.com\/banglasalearningschool<\/a><br \/>\n<a href=\"https:\/\/www.facebook.com\/justetcsocial\">https:\/\/www.facebook.com\/justetcsocial<\/a><\/p>\n<p><em>Get access to courses on Big Data, Data Science, AI, Cloud, Linux, System Admin, Web Development and Misc. related. Also, create your own course to sell to others. <\/em><a href=\"http:\/\/sitestree.com\/training\/\">http:\/\/sitestree.com\/training\/<\/a><\/p>\n<p><strong>Join, Discuss, and Thrive:<\/strong><br \/>\nFinance: <a href=\"https:\/\/www.facebook.com\/groups\/1792339521056034\">https:\/\/www.facebook.com\/groups\/1792339521056034<\/a><\/p>\n<p>Bangladesh and Canada: <a href=\"https:\/\/www.facebook.com\/groups\/398414183875009\">https:\/\/www.facebook.com\/groups\/398414183875009<\/a><\/p>\n<p>Bangladesh: IT &amp; Eng: Canada: <a href=\"https:\/\/www.facebook.com\/groups\/480297675634630\">https:\/\/www.facebook.com\/groups\/480297675634630<\/a><\/p>\n<p>BUETians in Ontario: <a href=\"https:\/\/www.facebook.com\/groups\/371982239854027\">https:\/\/www.facebook.com\/groups\/371982239854027<\/a><\/p>\n<p>Worldwide IT: <a href=\"https:\/\/www.facebook.com\/groups\/28362061867\">https:\/\/www.facebook.com\/groups\/28362061867<\/a><\/p>\n<p>JustEtc: <a href=\"https:\/\/www.facebook.com\/JustETC-Technologies-Inc-289864738261\">https:\/\/www.facebook.com\/JustETC-Technologies-Inc-289864738261<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From: https:\/\/medium.com\/@krisshaffer\/a-journey-through-api-programming-part-4-posting-to-medium-ad6e1b243429 &quot;from medium import Client import requests client = Client(application_id=&quot;xxxxxxxxxxx&quot;, application_secret=&quot;xxxxxxxxxxxxxxxxxxxxxxxxx&quot;) auth_url = client.get_authorization_url(\u201csecretstate\u201d, \u201chttps:\/\/pushpullfork.com\/callback&quot;, [\u201cbasicProfile\u201d, \u201cpublishPost\u201d])print(auth_url)&quot; &quot;auth = client.exchange_authorization_code(\u201cXXXXXXXX\u201d, \u201chttps:\/\/pushpullfork.com\/callback&quot;)client.access_token = auth[\u201caccess_token\u201d]user = client.get_current_user()&quot; &quot;post = client.create_post(user_id=user[&quot;id&quot;], title=&quot;Title&quot;, content=&quot;&lt;h2&gt;Test title&lt;\/h2&gt;&lt;p&gt;Trying to post with the Medium API.&lt;\/p&gt;&quot;, content_format=&quot;html&quot;, publish_status=&quot;draft&quot;)&quot; *** . *** *** . *** . *** . *** Training Courses: http:\/\/Training.SitesTree.com Blog: http:\/\/Bangla.SaLearningSchool.com, &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=17283\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[182],"tags":[],"class_list":["post-17283","post","type-post","status-publish","format-standard","hentry","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":7003,"url":"http:\/\/bangla.sitestree.com\/?p=7003","url_meta":{"origin":17283,"position":0},"title":"MongoDB Java","author":"Author-Check- Article-or-Video","date":"March 16, 2015","format":false,"excerpt":"Done By Raju(DU) MongoDB Java Installation \u09aa\u09a6\u09cd\u09a7\u09a4\u09bf\u0983 Java program \u098f MongoDB \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be\u09b0 \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0\u0995\u09c7 \u09a8\u09bf\u09b6\u09cd\u099a\u09bf\u09a4 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7 MongoDB JDBC Driver \u098f\u09ac\u0982 Java \u0986\u09ae\u09be\u09a6\u09c7\u09b0 machine \u098f \u09aa\u09c2\u09b0\u09cd\u09ac\u09c7 \u09a5\u09c7\u0995\u09c7\u0987 \u09b0\u09df\u09c7\u099b\u09c7\u0964 \u0986\u09aa\u09a8\u09bf \u0986\u09b0\u0993 Java tutorial \u09a6\u09c7\u0996\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8 \u0986\u09aa\u09a8\u09be\u09b0 machine \u098f Java installation \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u098f\u0996\u09a8 \u09a6\u09c7\u0996\u09ac\u09c7 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 MongoDB JDBC driver \u099f\u09bf\u2026","rel":"","context":"In &quot;\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB&quot;","block_context":{"text":"\u09ae\u0999\u09cd\u0997 \u09a1\u09bf \u09ac\u09bf \u0964 MongoDB","link":"http:\/\/bangla.sitestree.com\/?cat=222"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26814,"url":"http:\/\/bangla.sitestree.com\/?p=26814","url_meta":{"origin":17283,"position":1},"title":"ImportAttribute.jsp  Page that demonstrates the import attribute of the page directive. Uses the ServletUtilities class #Programming Code Examples #Java\/J2EE\/J2ME #JSP","author":"Author-Check- Article-or-Video","date":"May 2, 2021","format":false,"excerpt":"ImportAttribute.jsp Page that demonstrates the import attribute of the page directive. Uses the ServletUtilities class (Check Servlet Section) <!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"> <!-- Example of the import attribute of the page directive. Taken from Core Web Programming Java 2 Edition from Prentice Hall and Sun Microsystems Press,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70197,"url":"http:\/\/bangla.sitestree.com\/?p=70197","url_meta":{"origin":17283,"position":2},"title":"Middleware for Smart Environments #111","author":"Author-Check- Article-or-Video","date":"August 29, 2021","format":false,"excerpt":"Middleware for Smart Environments [jCook:05][on going] <h2>Smart Environment Components:<\/h2> <ul> <li> Sensor Hardware <\/li><li> Sensor Software <ul> <li> Both help in perceiving\/sensing the environment <\/li><\/ul> <\/li><li> Application Software <ul> <li> Interprets and reasons about the perceived data <\/li><\/ul> <\/li><li> Effector Control Software <ul> <li> Act on the environment <\/li><\/ul> <\/li><li>Some\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26555,"url":"http:\/\/bangla.sitestree.com\/?p=26555","url_meta":{"origin":17283,"position":3},"title":"ShowSession.java  Servlet that uses session tracking to determine if the client is a repeat visitor. Uses the ServletUtilities  class to simplify the DOCTYPE and HEAD output. #Programming Code Examples #Java\/J2EE\/J2ME #Servlet","author":"Author-Check- Article-or-Video","date":"April 28, 2021","format":false,"excerpt":"ShowSession.java Servlet that uses session tracking to determine if the client is a repeat visitor. Uses the ServletUtilities class to simplify the DOCTYPE and HEAD output. package cwp; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.net.*; import java.util.*; \/** Simple example of session tracking. * * Taken from Core Web\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":62819,"url":"http:\/\/bangla.sitestree.com\/?p=62819","url_meta":{"origin":17283,"position":4},"title":"Installing Guzzle #PHP","author":"Author-Check- Article-or-Video","date":"May 21, 2021","format":false,"excerpt":"\"Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.\" http:\/\/docs.guzzlephp.org\/en\/latest\/index.html And from my .bash_history, the installation process curl -sS https:\/\/getcomposer.org\/installer | php php composer.phar require guzzlehttp\/guzzle:~6.0 To Contribute to Guzzle: git clone https:\/\/github.com\/guzzle\/guzzle.git cd guzzle && curl -s\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66322,"url":"http:\/\/bangla.sitestree.com\/?p=66322","url_meta":{"origin":17283,"position":5},"title":"Java Connector Overview and an Example #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Java Connector Architecture (JCA) enables integration of the J2EE components to any Enterprise Information Systems (EIS). EIS can be heterogeneous where scalability is a must. JDBC assumes DBMS\/RDBMS in the back-end, JCA targets any kind of EIS. One of the key parts of JCA is the Resource Adapter - usually\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17283"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/17283\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}