{"id":770,"date":"2012-01-30T08:56:46","date_gmt":"2012-01-30T08:56:46","guid":{"rendered":"http:\/\/frank-it-beratung.com\/?p=770"},"modified":"2012-09-29T10:55:32","modified_gmt":"2012-09-29T10:55:32","slug":"tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1","status":"publish","type":"post","link":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/","title":{"rendered":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1)"},"content":{"rendered":"<p>Wie angek\u00fcndigt hier ein kurzes Tutorials, wie man die Google+ API mit PHP nutzt. Bei folgender L\u00f6sung handelt es sich wieder um eine &#8222;Single-User&#8220; L\u00f6sung, d.h. das Script kann nur von einem Google-Account genutzt werden. Ich habe dies beispielsweise verwendet, um in bestimmten Intervallen (cronjob) zu pr\u00fcfen, ob ein bestimmter User einen neuen Post bei Google+ geschrieben hat. Dieser wurde dann automatisch auf Facebook ver\u00f6ffentlich (vgl. dazu meine Tutorials zur Facebook-API).<\/p>\n<p>Zudem verwende ich hier in diesem Tutorial wieder nur &#8222;PHP-Bordmittel&#8220; &#8211; auch wenn es eine Vielzahl von SDKs und Tools gibt sind diese m.E. f\u00fcr kleinere Aufgaben wie diese meist nicht unbedingt notwendig &#8211; so geht&#8217;s eigentlich schneller.<\/p>\n<p>Hier nun die Schritt-f\u00fcr-Schritt-Anleitung:<\/p>\n<p><!--more--><\/p>\n<p>1. Zuerst muss die Applikation bei Google registriert werden (hierf\u00fcr ist ein Google-Account erforderlich). Mit Googles API-Console (<a href=\"https:\/\/code.google.com\/apis\/console\" target=\"_blank\">https:\/\/code.google.com\/apis\/console<\/a>) muss ein neues Application \u201eProject\u201c angelegt werden, der Name des Projekts spielt keine Rolle.<\/p>\n<p>2. Unter \u201eAll Services\u201c ist dann \u201eGoogle+\u201c zu aktivieren.<\/p>\n<p>3. Unter \u201eAPI Access\u201c klickt man auf \u201eCreate an OAuth 2.0 client id\u201c<\/p>\n<p><a href=\"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"772\" data-permalink=\"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/bild1-6\/\" data-orig-file=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg\" data-orig-size=\"757,412\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Screenshot Tutorial\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg\" class=\"alignnone size-medium wp-image-772\" title=\"Screenshot Tutorial\" src=\"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300\" alt=\"\" width=\"300\" height=\"163\" srcset=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg 757w, https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild1-300x163.jpg 300w, https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild1-500x272.jpg 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>4. Hier muss ein \u201eProduct Name\u201c eingetragen werden, z. B. \u201eMeinGooglePlusTool\u201c.<\/p>\n<p>5. Als n\u00e4chstes w\u00e4hlt man \u201eInstalled application\u201c.<\/p>\n<p>6. Nun erh\u00e4lt man die Client ID, das Client Secret sowie die Redirect URL (dabei ist nur die erste Zeile wichtig \u201ehttp:\/\/localhost\u201c geh\u00f6rt nicht dazu)<\/p>\n<p><a href=\"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild2.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"773\" data-permalink=\"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/bild2-3\/\" data-orig-file=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild2.jpg\" data-orig-size=\"545,189\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Screenshot\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild2.jpg\" class=\"alignnone size-medium wp-image-773\" title=\"Screenshot\" src=\"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild2.jpg?w=300\" alt=\"\" width=\"300\" height=\"104\" srcset=\"https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild2.jpg 545w, https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild2-300x104.jpg 300w, https:\/\/frank-it-projekte.de\/blog\/wp-content\/uploads\/2012\/02\/bild2-500x173.jpg 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>7. Mit Hilfe dieser drei Werte kann man nun das Access-Token generieren. Ich empfehle hier mein open source Tool \u201e<a title=\"Neue Version Access Token Manager \u2013 jetzt auch mit Google+\u00a0Unterst\u00fctzung\" href=\"http:\/\/frank-it-beratung.com\/2011\/10\/14\/neue-version-access-token-manager-jetzt-auch-mit-google-unterstutzung\/\" target=\"_blank\">Access-Token-Manager<\/a>\u201c \u2013 alternativ kann man sich auch selbst etwas basteln, hier ist die Anleitung dazu bei Google: <a href=\"http:\/\/code.google.com\/apis\/accounts\/docs\/OAuth2InstalledApp.html\" target=\"_blank\">http:\/\/code.google.com\/apis\/accounts\/docs\/OAuth2InstalledApp.html<\/a><\/p>\n<p>8. Nun hat man das Access Token (sowie das Refresh Token, da der Token nur\u00a0 eine Stunde g\u00fcltig ist; mehr dazu im <a title=\"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil\u00a02)\" href=\"http:\/\/frankitberatung.wordpress.com\/2012\/02\/01\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-2\/\">2. Teil meines Tutorials<\/a>).<\/p>\n<p>9. Mit folgendem PHP-Code l\u00e4sst sich nun auf Google+ zugreifen (mit den Berechtigungen des Benutzers, den man bei Punk 7 zum generieren des Access-Tokens verwendet hat). In meinem Beispiel werden die \u201eactivities\u201c (d.h. die eigenen Posts) ausgelesen:<\/p>\n<pre>#!\/usr\/local\/bin\/php5\r\n\r\n&lt;?php\r\n\r\n\/\/ Tutorial: GooglePlus via OAuth mit PHP Bordmitteln\r\n\r\necho \"GooglePlus mit OAuth: Tutorial (Teil 1)\";\r\necho \"nn\";\r\n\r\n\/\/ OAuth Tokens\r\n$accesstoken = \"???\";\r\n\r\n\/\/z.B. meine letzten Aktivit\u00e4ten auslesen\r\n$APIurl = \"https:\/\/www.googleapis.com\/plus\/v1\/people\/me\/activities\/public\";\r\n\r\n\/\/ oder meine (\"me\") Daten:\r\n\/\/$APIurl = \"https:\/\/www.googleapis.com\/plus\/v1\/people\/me\";\r\n\r\n\/\/Request aufbauen\r\n$srequest=$APIurl.\"?access_token=\".$accesstoken;\r\n\r\n\/\/ Der Request ist fertig und sieht so aus:\r\necho \"nRequest: $srequestnn\";\r\n\r\n\/\/ GET vorbereiten &amp; ausf\u00fchren\r\n$opts = array('http' =&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0array(\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0'method'\u00a0 =&gt; 'GET'\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0)\r\n);\r\n$result = file_get_contents($srequest, false, stream_context_create($opts));\r\n\r\n\/\/ Falls gew\u00fcnscht das Ergebnis ausgeben\r\n\/\/echo \"nResult:n\" . $result;\r\n\r\n\/\/ Json umwandeln\r\n$daten=json_decode($result);\r\n\r\n\/\/ jetzt k\u00f6nnen die Daten ausgegeben werden, hier\r\n\/\/ z. B. Titel, Datum und Inhalt meiner Aktivi\u00e4ten\r\nfor ($i = 0; $i &lt; count($daten-&gt;items); $i++) {\r\n\u00a0\u00a0 \u00a0echo \"$i.-----------------------------------------------n\";\r\n\u00a0\u00a0 \u00a0echo \"Titel: \" . $daten-&gt;items[$i]-&gt;title.\"n\";\r\n\u00a0\u00a0 \u00a0echo \"Datum: \" . $daten-&gt;items[$i]-&gt;published.\"n\";\r\n\u00a0\u00a0 \u00a0echo \"Inhalt: \" . $daten-&gt;items[$i]-&gt;object-&gt;content.\"n\";\r\n\u00a0\u00a0 \u00a0echo \"nnn\";\r\n}\r\n\r\necho \"nn... das war's!n\";\r\n\r\n?&gt;<\/pre>\n<p>Hinweise:<\/p>\n<ul>\n<li>Was mit der API noch alles m\u00f6glich ist kann man in der offiziellen Doku nachlesen: <a href=\"https:\/\/developers.google.com\/+\/api\/\" target=\"_blank\">https:\/\/developers.google.com\/+\/api\/<\/a><\/li>\n<li>derzeit (Januar 2012) ist die Google+ API noch \u201eread-only\u201c, d.h. man kann nur Daten lesen, aber nichts schreiben (also z. B. keinen neuen Post versenden).<\/li>\n<li>Statt \u201eme\u201c in der API-Url kann die ID eines Users angegeben werden.<\/li>\n<\/ul>\n<p>P.S.<\/p>\n<p>Probleme? Fragen? Anregungen? Ich helfe jederzeit und gerne\u00a0 &#8211; einfach einen Kommentar oder Mail schreiben, die Antwort kommt schnellstm\u00f6glich. Unternehmen, die Unterst\u00fctzung, Beratung oder Schulung bei der API- oder Webprogrammierung, der Social-Media-Entwicklung oder dem Social-Media-Management ben\u00f6tigen finden zudem entsprechende Angebote meiner Firma auf der Website <a href=\"http:\/\/www.Frank-IT-Beratung.de\" target=\"_blank\">www.Frank-IT-Beratung.de<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wie angek\u00fcndigt hier ein kurzes Tutorials, wie man die Google+ API mit PHP nutzt. Bei folgender L\u00f6sung handelt es sich wieder um eine &#8222;Single-User&#8220; L\u00f6sung, d.h. das Script kann nur von einem Google-Account genutzt werden. Ich habe dies beispielsweise verwendet, &hellip; <a href=\"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4,10,15,16,18],"tags":[34,35,36,76,80],"class_list":["post-770","post","type-post","status-publish","format-standard","hentry","category-api","category-google-api","category-php","category-programmierung","category-social-networks","tag-g","tag-g-api","tag-google","tag-google-api","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \/\/ Frank-IT-Beratung<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \/\/ Frank-IT-Beratung\" \/>\n<meta property=\"og:description\" content=\"Wie angek\u00fcndigt hier ein kurzes Tutorials, wie man die Google+ API mit PHP nutzt. Bei folgender L\u00f6sung handelt es sich wieder um eine &#8222;Single-User&#8220; L\u00f6sung, d.h. das Script kann nur von einem Google-Account genutzt werden. Ich habe dies beispielsweise verwendet, &hellip; Weiterlesen &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Socialweb Dev-Blog \/\/ Frank-IT-Beratung\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-30T08:56:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-09-29T10:55:32+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300\" \/>\n<meta name=\"author\" content=\"Simon A. Frank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Simon A. Frank\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/\"},\"author\":{\"name\":\"Simon A. Frank\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#\\\/schema\\\/person\\\/e31d0c55b9277739ef6c87d5e7bb47a2\"},\"headline\":\"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1)\",\"datePublished\":\"2012-01-30T08:56:46+00:00\",\"dateModified\":\"2012-09-29T10:55:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/\"},\"wordCount\":450,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#\\\/schema\\\/person\\\/e31d0c55b9277739ef6c87d5e7bb47a2\"},\"image\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/bild1.jpg?w=300\",\"keywords\":[\"g+\",\"g+ api\",\"Google\",\"Google API\",\"PHP\"],\"articleSection\":[\"API\",\"Google API\",\"PHP\",\"Programmierung\",\"Social Networks\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/\",\"url\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/\",\"name\":\"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \\\/\\\/ Frank-IT-Beratung\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/bild1.jpg?w=300\",\"datePublished\":\"2012-01-30T08:56:46+00:00\",\"dateModified\":\"2012-09-29T10:55:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#primaryimage\",\"url\":\"http:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/bild1.jpg?w=300\",\"contentUrl\":\"http:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/02\\\/bild1.jpg?w=300\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/2012\\\/01\\\/30\\\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/\",\"name\":\"Socialweb Dev-Blog \\\/\\\/ Frank-IT-Beratung\",\"description\":\"Social-Media und Web-Entwicklung: Tutorials und Tipps von Simon A. Frank\",\"publisher\":{\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#\\\/schema\\\/person\\\/e31d0c55b9277739ef6c87d5e7bb47a2\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/#\\\/schema\\\/person\\\/e31d0c55b9277739ef6c87d5e7bb47a2\",\"name\":\"Simon A. Frank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/09\\\/simon200x200.jpg\",\"url\":\"https:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/09\\\/simon200x200.jpg\",\"contentUrl\":\"https:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/09\\\/simon200x200.jpg\",\"width\":200,\"height\":200,\"caption\":\"Simon A. Frank\"},\"logo\":{\"@id\":\"https:\\\/\\\/frank-it-beratung.de\\\/blog\\\/wp-content\\\/uploads\\\/2009\\\/09\\\/simon200x200.jpg\"},\"url\":\"https:\\\/\\\/frank-it-projekte.de\\\/blog\\\/author\\\/sfrank\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \/\/ Frank-IT-Beratung","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/","og_locale":"de_DE","og_type":"article","og_title":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \/\/ Frank-IT-Beratung","og_description":"Wie angek\u00fcndigt hier ein kurzes Tutorials, wie man die Google+ API mit PHP nutzt. Bei folgender L\u00f6sung handelt es sich wieder um eine &#8222;Single-User&#8220; L\u00f6sung, d.h. das Script kann nur von einem Google-Account genutzt werden. Ich habe dies beispielsweise verwendet, &hellip; Weiterlesen &rarr;","og_url":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/","og_site_name":"Socialweb Dev-Blog \/\/ Frank-IT-Beratung","article_published_time":"2012-01-30T08:56:46+00:00","article_modified_time":"2012-09-29T10:55:32+00:00","og_image":[{"url":"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300","type":"","width":"","height":""}],"author":"Simon A. Frank","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Simon A. Frank","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#article","isPartOf":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/"},"author":{"name":"Simon A. Frank","@id":"https:\/\/frank-it-projekte.de\/blog\/#\/schema\/person\/e31d0c55b9277739ef6c87d5e7bb47a2"},"headline":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1)","datePublished":"2012-01-30T08:56:46+00:00","dateModified":"2012-09-29T10:55:32+00:00","mainEntityOfPage":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/"},"wordCount":450,"commentCount":1,"publisher":{"@id":"https:\/\/frank-it-projekte.de\/blog\/#\/schema\/person\/e31d0c55b9277739ef6c87d5e7bb47a2"},"image":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#primaryimage"},"thumbnailUrl":"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300","keywords":["g+","g+ api","Google","Google API","PHP"],"articleSection":["API","Google API","PHP","Programmierung","Social Networks"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/","url":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/","name":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1) - Socialweb Dev-Blog \/\/ Frank-IT-Beratung","isPartOf":{"@id":"https:\/\/frank-it-projekte.de\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#primaryimage"},"image":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#primaryimage"},"thumbnailUrl":"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300","datePublished":"2012-01-30T08:56:46+00:00","dateModified":"2012-09-29T10:55:32+00:00","breadcrumb":{"@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#primaryimage","url":"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300","contentUrl":"http:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2012\/02\/bild1.jpg?w=300"},{"@type":"BreadcrumbList","@id":"https:\/\/frank-it-projekte.de\/blog\/2012\/01\/30\/tutorial-google-api-mit-php-bordmitteln-nutzen-teil-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/frank-it-projekte.de\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorial: Google+ API mit PHP Bordmitteln nutzen (Teil 1)"}]},{"@type":"WebSite","@id":"https:\/\/frank-it-projekte.de\/blog\/#website","url":"https:\/\/frank-it-projekte.de\/blog\/","name":"Socialweb Dev-Blog \/\/ Frank-IT-Beratung","description":"Social-Media und Web-Entwicklung: Tutorials und Tipps von Simon A. Frank","publisher":{"@id":"https:\/\/frank-it-projekte.de\/blog\/#\/schema\/person\/e31d0c55b9277739ef6c87d5e7bb47a2"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/frank-it-projekte.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/frank-it-projekte.de\/blog\/#\/schema\/person\/e31d0c55b9277739ef6c87d5e7bb47a2","name":"Simon A. Frank","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2009\/09\/simon200x200.jpg","url":"https:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2009\/09\/simon200x200.jpg","contentUrl":"https:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2009\/09\/simon200x200.jpg","width":200,"height":200,"caption":"Simon A. Frank"},"logo":{"@id":"https:\/\/frank-it-beratung.de\/blog\/wp-content\/uploads\/2009\/09\/simon200x200.jpg"},"url":"https:\/\/frank-it-projekte.de\/blog\/author\/sfrank\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2dxcw-cq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/posts\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/comments?post=770"}],"version-history":[{"count":1,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/media?parent=770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/categories?post=770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frank-it-projekte.de\/blog\/wp-json\/wp\/v2\/tags?post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}