草庐IT

Google-Forms

全部标签

php - Google App Engine PHP SDK 在 helloworld 脚本上返回错误

我目前正在本地开发环境中试用适用于PHP的GoogleAppEngine。到目前为止,我一直在按照https://developers.google.com/appengine/docs/php/gettingstarted/helloworld上的说明进行操作。为了测试一个小应用程序以适应SDK的工作方式。但是,当我开始使用SDK加载测试Web服务器时,我在尝试加载非常基本的helloworld.php示例时遇到错误。我当前运行的命令是:../GoogleAppEngineSDK/google_appengine/dev_appserver.py--php_executable_pa

javascript - 如何重置 Google reCaptcha?

这是我的PHP代码:functionpost_captcha($user_response){$fields_string='';$fields=array('secret'=>'','response'=>$user_response);foreach($fieldsas$key=>$value)$fields_string.=$key.'='.$value.'&';$fields_string=rtrim($fields_string,'&');$ch=curl_init();curl_setopt($ch,CURLOPT_URL,'https://www.google.com/r

php - Google Closure Compiler 和 multipart/form-data 不工作

我正在向google闭包编译器API服务发出请求:$content=file_get_contents('file.js');$url='http://closure-compiler.appspot.com/compile';$post=true;$postData=array('output_info'=>'compiled_code','output_format'=>'text','compilation_level'=>'SIMPLE_OPTIMIZATIONS','js_code'=>urlencode($content)));$ch=curl_init();curl_se

php - HTTP_ACCEPT_LANGUAGE 出现 Google 抓取错误

在我的Codeigniter应用程序中,我使用$_SERVER['HTTP_ACCEPT_LANGUAGE']来确定用户浏览器语言以基于此设置应用程序语言,如下所示:publicfunction__construct(){parent::__construct();/*setsessionlanguageifnotset."hu"ifbrowserlanguage"hu",else"en"*/if(!($this->session->userdata("lang"))){$browserlang=substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);

php - 在 Laravel 5 中使用 Google Drive Api

我是Laravel的新手,这个问题肯定有明显的答案,但我无法将Laravel5与GoogleApi连接起来。我像往常一样用composer安装了Api,它在我的vendor文件夹中,但现在我不确定如何使用它。我还没有找到答案(因为这一定非常简单)。可能我缺少namespace调用或类似的东西。在我的IndexController上,我有:setApplicationName("Client_Library_Examples");$client->setDeveloperKey("HERE_GOES_MY_KEY");$service=newGoogle_Service_Drive($c

在Google BigQuery中平坦多个重复的字段

我正在尝试在大查询中从重复字段中平移数据。我看过这个查询BigQuery中的多个重复字段,但是我似乎无法使它起作用。我的数据看起来如下:[{"visitorId":null,"visitNumber":"15","device":{"browser":"Safari(in-app)","browserVersion":"(notset)","browserSize":"380x670","operatingSystem":"iOS",},"hits":[{"isEntrance":"true","isExit":"true","referer":null,"page":{"pagePath":

PHP : Google plus Oauth 2. 0 - 获取 OAuth2 访问 token 时出错,消息: 'invalid_client'

使用PHPLibv2、Oauth2.0致力于使用Google登录。我花了很长时间终于配置好了,它曾经可以正常工作,但之后就不能用了。单击登录链接时,用户需要向Google进行身份验证。在此之前工作正常,身份验证完成。在使用GET变量回调时:?code=something&authuser=0&prompt=consent&session_state=something它正在生成以下错误:Fatalerror:Uncaughtexception'Google_AuthException'withmessage'ErrorfetchingOAuth2accesstoken,message:

php - Google 身份验证器扫描时条形码无效

这是我生成二维码的代码publicfunctiongetUrl($user,$hostname,$secret){$encoder="https://chart.googleapis.com/chart?chs=200x200&chld=M%70&cht=qr&chl=";$encoderURL=sprintf("%sotpauth://totp/%s@%s",$encoder,$user,$hostname);$finalEncodorURL=$encoderURL."%26secret=".urlencode($secret);return$finalEncodorURL;}据说这

php - 在 php 中使用 google calendar api v3 获取重复事件

我正在使用googlecalendarapiv3来获取日历事件。但是如何获取所有重复发生的事件。它只返回带有一些提示的单个事件,例如:DAILY;UNTIL=20等。请帮我解决这个问题…… 最佳答案 如果您使用事件:列表API方法,请添加singleEvents=true参数。来自APIdocs:singleEventsbooleanWhethertoexpandrecurringeventsintoinstancesandonlyreturnsingleone-offeventsandinstancesofrecurringeve

PHP 按图像搜索 Google cURL 返回 302 已移动

我正在尝试获取一个简单的字符串,其中包含我使用search-by-image搜索的图像的描述.所以我设置了我的search_by_google.php页面:]+>([^1?$matches[1]:false);}}?>我已经更改了所有curl选项,但如果我转到http://www.mysite.altervista.org/search_by_google.php?url=http://www.mysite.org/asdasd.jpg&raw=false它让我一直说302移动我已经更改了我的代码放置curl_setopt($ch,CURLOPT_HEADER,TRUE);在第二个cu