{"id":15969,"date":"2011-12-09T06:41:29","date_gmt":"2011-12-09T06:41:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/get-github-code\/"},"modified":"2011-12-12T13:08:56","modified_gmt":"2011-12-12T13:08:56","slug":"get-github-code","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/get-github-code\/","author":8645865,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.0.5","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Get GitHub Code","header_author":"PIZn","header_description":"","assets_banners_color":"","last_updated":"2011-12-12 13:08:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/me.alipay.com\/pizn","header_plugin_uri":"http:\/\/www.pizn.net\/09-12-2011\/get-github-code-for-wordpress-plugins\/","header_author_uri":"http:\/\/www.pizn.net\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1633,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1443824","resolution":"2","location":"plugin","width":285,"height":382},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1443824","resolution":"1","location":"plugin","width":840,"height":460}},"screenshots":{"1":"The setting page.","2":"A part of the post edit."}},"plugin_section":[],"plugin_tags":[1214,1673,32179],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-15969","plugin","type-plugin","status-publish","hentry","plugin_tags-code","plugin_tags-github","plugin_tags-github-api","plugin_committers-pizn"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/get-github-code.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/get-github-code\/trunk\/screenshot-1.jpg?rev=1443824","caption":"The setting page."},{"src":"https:\/\/ps.w.org\/get-github-code\/trunk\/screenshot-2.jpg?rev=1443824","caption":"A part of the post edit."}],"raw_content":"<!--section=description-->\n<p>Get GitHub Code is a wordpress plugin for a post or single page to show the code form GitHub Repository. With GitHub API v2 to get the data, and save on the server cache file, have a limit time for cache file.<\/p>\n <p>You can get the code you like , and show it at the post. Every post can show one Repository code.<\/p>\n <p>PHP version 5.2.0 +, and <code>curl<\/code> be able.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract to \"wp-content\/plugins\/\" directory.<\/li>\n<li>Activation this Get-GitHub-Code plugins.<\/li>\n<li>Create a file for save the cache on your server, make sure your file have write and read permissions.<\/li>\n<li>Go to the setting page, input your cache path, choose your cache limit time, and save it.<\/li>\n<li>Add <code>&lt;?php igit_getcode(); ?&gt;<\/code> in your wordpress theme's single.php.<\/li>\n<li>Edit post, fill the form on right side about github connect, save the post and you will view on the post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>I got the message \"Here is the code get form GitHub, but it have some problem. Please wait 1 hours later.\", how to fiexd it ?<\/h4>\n <p>You may change your cache time by 1 Minute and ref lash the post. When it done, change cache time you like again.<\/p>\n <h4>And this: \"Oh, the code form github can't not get! Please contact the site master..'\"<\/h4>\n <p>Please check your cache file exit and it should be Read and write permissions!<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n <ul>\n<li>The previous version<\/li>\n<\/ul>","raw_excerpt":"Get GitHub Code is a wordpress plugin for a post or single page to show the code form GitHub Repository. With GitHub API v2 to get the data, and save  &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15969"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pizn"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15969"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15969"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15969"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15969"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15969"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}