{"id":60344,"date":"2011-04-22T10:45:27","date_gmt":"2011-04-22T10:45:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/shutterstock-api-wordpress-plugin\/"},"modified":"2011-04-22T00:06:05","modified_gmt":"2011-04-22T00:06:05","slug":"shutterstock-api-wordpress-plugin","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/shutterstock-api-wordpress-plugin\/","author":165744,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1","stable_tag":"trunk","tested":"2.1","requires":"2.0.2","requires_php":"","requires_plugins":"","header_name":"ByREV Shutterstock API Interface Plugin","header_author":"ByREV ( Robert Emilian Vicol )","header_description":"","assets_banners_color":"","last_updated":"2011-04-22 00:06:05","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/byrev.org\/","header_author_uri":"http:\/\/byrev.org","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2400,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","screenshots","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-60344","plugin","type-plugin","status-closed","hentry","plugin_committers-byrev"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/shutterstock-api-wordpress-plugin.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Shutterstock API Interface for WordPress.\nVersion 2+ comes with configuration option directly from the administration page<\/p>\n\n<!--section=installation-->\n<ol>\n<li><p>Download Shutterstock API WordPress Plugin<\/p><\/li>\n<li><p>Unzip \/ Upload \/ Install plugin<\/p><\/li>\n<li><p>Open\/Edit shutterstock-def.php from wp-content\\plugins\\byrev_shutterstock\\ folder and modify\/change next constants with the valid values:<\/p>\n\n<p>define('<em>SHUTTERSTOCK_USER', '_valid_shutterstock_user<\/em>');\ndefine('<em>SHUTTERSTOCK_API_KEY', '_valid_api_key<\/em>');\ndefine('<em>SHUTTERSTOCK_RID', '_valid_referrer_id<\/em>');<\/p><\/li>\n<li><p>Save shutterstock-def.php file and activate plugin (can be activated even in step 2, but API it will not work).<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>How To Use Shutterstock API Plugin (example):<\/p>\n\n<p>Static Banners or API (if  Shutterstock API is enabled for you)<\/p>\n\n<pre><code>&lt;?php shutterstock_print_banner('300x250'); ?&gt;\n<\/code><\/pre>\n\n<p>Only using API (working only with valid Shutterstock API KEY)<\/p>\n\n<pre><code>&lt;?php shutterstock_print_ads_via_api('728x90'); ?&gt;\n<\/code><\/pre>\n\n<p>Valid banner size\/format: 160?600, 120?600, 300?250, 250?250, 250?200, 250?125, 200?125, 125?125, 728?90, 180?75, 468?60\n5 Link using autodetect keywords \/ width: 728px, height: 15px<\/p>\n\n<pre><code>&lt;?php shutterstock_print_links_via_api(728,15,'' , 5); ?&gt;\n<\/code><\/pre>\n\n<p>Valid Banner Size:\n    160x600, 120x600, 300x250, 250x250, 250x200, 250x125, 200x125, 125x125, 728x90, 180x75, 468x60<\/p>\n\n<p>Example PHP Code (for testing) - PHP\/CODE:<\/p>\n\n<p>shutterstock_print_links_via_api(468,15);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_links_via_api(728,15,'' , 5, true, ', ',true);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_links_via_api(200,200);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_banner('300x250');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_banner('300x250');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('728x90', 'sun');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('468x60', 'sky');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('300x250', 'technology',-1);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('250x250', 'objects');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('250x200', 'health', 2);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('250x125', 'cars');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('200x125', 'business');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('180x75', 'money');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('125x125', 'girls');\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('160x600', 'nature',-1);\necho '<\/p>\n\n\n\n<p>';\nshutterstock_print_ads_via_api('120x600', 'sky',-1);\necho '<\/p>\n\n\n\n<p>';<\/p>\n\n<!--section=screenshots-->\n<p>http:\/\/byrev.org\/images\/2010\/11\/Shutterstock-API-Plugin-Options.jpg<\/p>\n\n<!--section=changelog-->\n<p>Version 2.0.0 comes with configuration directly from the wordpress administration, editing files no longer necessary!<\/p>","raw_excerpt":"Shutterstock API Interface Plugin (Banners, Thumbnails, Links)","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/60344","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=60344"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/byrev"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=60344"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=60344"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=60344"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=60344"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=60344"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=60344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}