Posts

Showing posts from March, 2020

Google APIs Client Library PHP Get Blog Info by URL

Hi Guys, So, as I mentioned on previous post References , I've been using  Google APIs Client Library for PHP to comunicate with the Google (Blogger) services. So let's start playing with the library. Get Blog Info by URL Take a look this codes: $client = new \Google_Client(); $client->setApplicationName('ANY_APP_NAME'); $client->setDeveloperKey('YOUR_DEVELOPER_KEY'); $service = new \Google_Service_Blogger($client); $blog = $service->blogs->getByUrl('BLOG_URL'); echo json_encode($blog->toSimpleObject()); The result is something like this: { "status" : "ok" , "data" : { "description" : "Tutorial php framework, yii framework, yii2 framework, laravel framework, codeigniter framework, ci framework, pemrograman berorientasi objek, pbo, object oriented programming, pop gratis" , "id" : "6612500226451156285" , "kind"