google-api

How to merge cells using Google Sheets API with PHP?

守給你的承諾、 提交于 2020-01-05 04:33:09
问题 I'm newbie on this, I create a Google Sheets and put some content there using PHP API: $id_file = "XXXXXXXXxxxxXXXXXXXXxxx"; //ID sheet $range = "A2:E2"; $values = [["INGLÉS","ESPAÑOL","DEFINICIÓN","FUENTE","COMENTARIOS"]]; $range1 = "A1:E1"; $values1 = [["GLOSARIO"]]; $data = []; $data1 = []; $data[] = new Google_Service_Sheets_ValueRange([ 'range' => $range, 'majorDimension' => 'ROWS', 'values' => $values ]); $requestBody = new Google_Service_Sheets_BatchUpdateValuesRequest([

URL and customMetaData option in Blogger API

徘徊边缘 提交于 2020-01-05 04:23:12
问题 I am creating posts using Blogger API. In documentation of Blogger API: https://developers.google.com/blogger/docs/3.0/reference/posts In resource representation of Posts, I am interested in 2 columns: url and customMetaData Property name Value Description url string The URL where this post is displayed. customMetaData string The JSON metadata for the post. I am able to set title and content, but URL and Search Description are not working. I want to send Search Description in customMetaData,

Cannot see Youtube Content ID API to enable

丶灬走出姿态 提交于 2020-01-05 04:20:27
问题 I got error while trying to update Youtube Video asset Error calling GET https://www.googleapis.com/youtube/partner/v1/contentOwners?fetchMine=true: (403) Access Not Configured. The API (Youtube Content ID API) is not enabled for your project. Please use the Google Developers Console to update your configuration. But I cannot find the Youtube Content ID API in my dev console. I'm using a Youtube Account with a channel that is Youtube Partner. What's wrong with that? :( 回答1: You don't see it

Google Books API - Book Details not Returned

别说谁变了你拦得住时间么 提交于 2020-01-05 04:14:14
问题 So I started using the Google Books API for an application that I am building and I am fairly happy with the results. But I have noticed a strange behaviour sometimes. Some ISBNs do not return any book details even though the book exists in the database. For example, if I give: https://www.googleapis.com/books/v1/volumes?q=isbn:0262527359, I get the following response: { "kind": "books#volumes", "totalItems": 0 } I digged around the internet regarding this problem and found this link: https:/

Problems with the Google API PHP simple-query example

戏子无情 提交于 2020-01-05 04:09:07
问题 I am trying to get the Google simple-query example (off GitHub) working, unfortunately with a definite lack of success ... all I get is an exit code of 255. I established that the problem was in the call to the Google Server, so added an exception handler to the code. The program now looks like this: <?php /* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a

continuous call of Google Prediction API gives response 'Undefined'

放肆的年华 提交于 2020-01-05 04:04:27
问题 In my application I have been calling google prediction API continuously for an array(size: 4000 aprox) of strings. I observed that after some api calls it starts giving response as Undefined , it continues for some time and then gives result fine. This is happening frequently. I have checked their api documentation, but couldn't find any rate limit or any such restriction. Also there was no error logged in Google API manager dashboard. Does anyone have any idea why its happening like that.

passing the latitude and longitude to my map script

ε祈祈猫儿з 提交于 2020-01-05 04:00:49
问题 I show the user address in the google map by using the latitude and longitude. I got the lat & long by using an java-script, and also have the map script. but I dont know how to combine them, Simply what I need is pass the lat and long into the show map script "function initialize()". this is my code: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var map; var geocoder; var centerChangedLast; var

Using the Custom Search API (REST JSON) to search for square images

↘锁芯ラ 提交于 2020-01-05 03:51:08
问题 I'm using Google's JSON Custom Search API for a project that involves creating profiles for professional football/soccer players. If I search any player with Google Images regularly and search in a "Player name, Current team" format with the Search Tools set to Type->Face and Advanced Search set to aspect ratio->Square , then I typically get a perfect "profile" headshot as the first result. This would be ideal for the project, as every image has to be square. Using the aforementioned API, I

Google calendar API storing code or access token

懵懂的女人 提交于 2020-01-05 02:26:29
问题 Im trying to figure out Google calendars but I cant make sense out of which string I need to store in my db to fetch access tokens when I need to push or get data. I make my request to Google and they return: ?code=4/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx# Then I authenticate: $client->authenticate($_GET['code']); Then I get access token: $client->getAccessToken() Everything works great for this session. But, I dont want to have to ask the user to authenticate each time. Can I store the $

Google oAuth: redirect_uri_mismatch

99封情书 提交于 2020-01-04 14:38:32
问题 We are getting a "redirect_uri_mismatch" error when attempting to get an oAuth token from Google: [client 127.0.0.1:49892] {\n "error" : "redirect_uri_mismatch"\n}, referer: `http://localhost/oAuth/chess-login.html` There are two files being used: chess-login.html, and plus.php (code below). The Google API has the following URI: http://localhost/oAuth/chess-login.html Can anyone point to a solution? plus.php: <?php $client_id = "XXX.apps.googleusercontent.com"; //your client id $client_secret