google-api

Google Page Speed Insights API: Internet Error

孤者浪人 提交于 2019-12-24 06:00:54
问题 I am getting an error from Google PageSpeed Insights API. Its just returns Internal Error with Code 500. Here is the detailed response: "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "An error occurred while fetching or analyzing the page." } ], "code": 500, "message": "An error occurred while fetching or analyzing the page." } } I also Tried with Google API key from within Google Cloud Console (Enabled PageInsights APi for my account). No Luck still the

Google Page Speed Insights API: Internet Error

南笙酒味 提交于 2019-12-24 06:00:02
问题 I am getting an error from Google PageSpeed Insights API. Its just returns Internal Error with Code 500. Here is the detailed response: "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "An error occurred while fetching or analyzing the page." } ], "code": 500, "message": "An error occurred while fetching or analyzing the page." } } I also Tried with Google API key from within Google Cloud Console (Enabled PageInsights APi for my account). No Luck still the

using the google sheets api

别来无恙 提交于 2019-12-24 05:21:59
问题 I want to be able to edit a google spreadsheet from a Android app. I read that I need to do the OAuth 2.0 and only after that I can access the API. in the Authorizing with Google for REST APIs in the android werbsite, it says: Note: An OAuth 2.0 token using GoogleAuthUtil is required only for certain types of Google APIs that you need to access over HTTP. If you're instead using the Google Play services library to access Google APIs such as Google+ or Play Games, you don't need an OAuth 2.0

gmail api html inline styles are not applying

瘦欲@ 提交于 2019-12-24 03:58:09
问题 I'm using gmail api and I'm trying to send the following code as mail For ex: I'm sending this <tr> <td style="font-family:Arial, Helvetica, sans-serif; font-size:9px;"> <a>Buy what you wish & Get Flat 5% off Use: HOLIDAY5</a> </td> </tr> and in the mail I'm receiving this <tr> <td> <a>Buy what you wish & Get Flat 5% off Use: HOLIDAY5</a> </td> </tr> all my inline styles are gone my post request is var from= 'From: '+name+' <'+email+'>\r\n'; var to='To: Me '+' <'+to+'>\r\n'; var subject=

Getting nearby localities from lat long using Google place API

こ雲淡風輕ζ 提交于 2019-12-24 03:51:07
问题 I'm using google place API i.e https://maps.googleapis.com/maps/api/place/search/json?location=33.7167,73.0667&radius=500&type=funeral_home&sensor=false&key=AIzaSyDN1QX-gWUR-mIYo_D21PNFLHHpNQkIkGU Above link gives me all the nearby locations of particular type. i.e types=food. now i will get all the cafes and restaurants nearby with their respective addresses. Is there anyway that can give me only areas or localities nearby my coordinates (lat, long)? Thanks in advance. 回答1: I had a similar

Getting nearby localities from lat long using Google place API

拈花ヽ惹草 提交于 2019-12-24 03:51:04
问题 I'm using google place API i.e https://maps.googleapis.com/maps/api/place/search/json?location=33.7167,73.0667&radius=500&type=funeral_home&sensor=false&key=AIzaSyDN1QX-gWUR-mIYo_D21PNFLHHpNQkIkGU Above link gives me all the nearby locations of particular type. i.e types=food. now i will get all the cafes and restaurants nearby with their respective addresses. Is there anyway that can give me only areas or localities nearby my coordinates (lat, long)? Thanks in advance. 回答1: I had a similar

Inapppurchases: get api query failed “code”:400,“message”:“Invalid Value” “code”:500,“message”:null

半城伤御伤魂 提交于 2019-12-24 03:39:12
问题 I get access_token by this way :https://developers.google.com/android-publisher/authorization 1.use google account allow acess get code 2.use code to get refresh_token 3.use refresh_token get access_token when use this api $url_purchase = "https://www.googleapis.com/androidpublisher/v1.1/applications". "/$packageName/inapp/$productId/purchases/$token?access_token=". $return_data->access_token; $return_purchase = http_get($url_purchase); some billing return {"error":{"code":500,"message":null}

Google Analytics Api Error

心不动则不痛 提交于 2019-12-24 02:57:18
问题 I am trying to make a call to get data from Google Analytics. <?php require_once 'lib/apiClient.php'; require_once 'lib/contrib/apiAnalyticsService.php'; session_start(); $client = new apiClient(); $service = new apiAnalyticsService($client); if (isset($_GET['logout'])) { unset($_SESSION['token']); } if (isset($_GET['code'])) { $client->authenticate(); $_SESSION['token'] = $client->getAccessToken(); $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; header('Location: ' .

405 Error with POST request (AngularJS $http)

£可爱£侵袭症+ 提交于 2019-12-24 02:38:05
问题 I want to do a post request on Google Contacts API with AngularJS $http. I tried to do this : var config = { headers: { // "Content-Type": "application/json", "Authorization": "Bearer " + gapi.auth.getToken().access_token, "GData-Version": "3.0" } } var data = { "test": "test" } $http.post('https://www.google.com/m8/feeds/contacts/default/full/', data, config); But it returns " XMLHttpRequest cannot load https://www.google.com/m8/feeds/contacts/default/full/. Response for preflight has

Corrupted UTF-8 encoding when reading Google feed / alerts

佐手、 提交于 2019-12-24 02:22:34
问题 Whenever I try to read a Google alert via PHP using something like: $feed = file_get_contents("http://www.google.com/alerts/feeds/01445174399729103044/950192755411504138"); Regardless of whether I save the $feed to a file or echo the result to the output, all utf-8 unicode characters ( i.e. those with diacritics) are represented by white space. I have tried - without success - various combinations of: utf8_encode utf8_decode iconv mb_convert_encoding I think the wrong characters have come