问题标签 [google-console-developer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
google-apps-script - 如何缩小谷歌应用程序脚本的身份验证/驱动范围?
我已经构建了一个谷歌应用脚本网络应用程序。对于 Google Drive 相关功能,应用程序需要auth/drive.install
(与 Drive UI 集成)和auth/drive.file
(在相关文件属性中存储与文件关联的一些数据)范围。其他范围是auth/urlshortener
、auth/userinfo.email
和auth/userinfo.profile
。据我了解,后两者是身份验证所必需的。
上述范围在应用程序内的 oauth dance 中指定。但是,在应用安装时,会向用户显示以下范围:
- 查看和管理您的 Google Drive 中的文件(对应于
auth/drive scope
) - 管理您的 goo.gl 短网址 (
auth/urlshortener
) - 和其他三个与
auth/script_*
范围相对应的
这与脚本属性的范围相关。
显然,auth/drive
并且auth/urlshortner
由于使用了高级 Google 服务而被添加,这些服务在 GAS IDE(资源 > 高级 Google 服务)和开发者控制台中都已打开。
GAS IDE 不允许指定任何比 eg 更窄的范围auth/drive
。出于某种原因,开发者控制台中的 Google Apps Marketplace SDK 配置不允许添加任何特定范围。实际上,它允许添加但不保存任何内容。
问题:
最近,Google 为请求敏感 OAuth 范围的 OAuth 客户端引入了一个审查程序,并且auth/drive
绝对是其中之一。
我不需要整个auth/drive
范围,也不希望用户看到这样的内容:
此应用未验证
drive
有没有办法通过 GAS IDE 或开发者控制台缩小范围?
脚本本身不使用任何auth/script_*
功能。自从我使用节点谷歌应用程序脚本模块进行开发以来,这些都是以某种方式隐式添加的。我不需要用户的许可。如何摆脱它?
任何解决方法?
python - 如何将 Google Console Project 与 Google Analytics 帐户连接起来
我想创建 Python 项目以从某个页面从 Google Analytics 获取数据。
我在 Google Console (console.google.developers.com) 中创建了新项目,并获得了 JSON 格式的 OAuth 2.0 凭据。我正在松散地遵循本教程:Python QuickStart。
我已经被重定向到 OAuth 并选择了我的帐户,但脚本正在获取
“用户对此配置文件没有足够的权限”。
在 Google Analytics 中添加对我的用户的访问权限就足够了吗?以及如何在远程服务器上从 shell 运行这个项目?我将无法在 CLI 中打开浏览器并选择 Google 帐户...
html - Chrome中奇怪的缓存行为“显示临时标头”?
无论如何可以解释下面测试的 Chrome 中的结果吗?在我看来这不合逻辑。
测试.HTML
我知道 Chrome 中的扩展可能会影响:“显示临时标题”。所以对于这个测试,我首先禁用了我在 Chrome 中的所有扩展。
现在我做了以下事情:
- 第 1 步:
在地址栏中输入并按 Enter:http ://www.example.com/test.html (确保我也按了 CONTROL F5)
结果是:
状态代码:200 OK
大小:510 B - 第 2 步:
现在我按下:CONTROL N(打开新窗口)。
在我在地址栏中输入内容之前,我转到“开发人员工具”>“网络”选项卡
现在我在地址栏中输入并按 Enter:http
://www.example.com/test.html 现在结果是:
状态代码: 200 OK
尺寸: 183 B
所以大小更小,所以我想也许有一些缓存正在进行。但是状态码是“200 OK”而不是:
“200 OK(来自磁盘缓存)”或“200 OK(来自内存缓存)”
现在我想测试 Chrome 是否在步骤 2 中发出请求,所以我更改了文件:
“测试缓存行为……”
我改成:
“测试缓存行为……(2)”
现在我重复“第2步”。浏览器未显示“(2)”,这意味着 Chrome 正在从缓存中获取文件。在开发人员工具中,我还看到:
请求标头:显示临时标头
因此 Chrome 正在从缓存中获取文件,但显示“200 OK”(绿色)没有任何缓存标志,如“(来自磁盘缓存)”或“(来自内存缓存)”。这对我来说似乎不合逻辑。为什么 Chrome 会这样做?
android - Google Play 商店拒绝了我的应用
我和我的合作者(iOS 开发者)开发了一个应用程序。我开发了安卓版,他开发了iOS版。因此,我们使用了相同的内容和图像。他成功发布了他的 iOs 版本,但 Google Play 商店拒绝了我的 Android 版本——因为我使用了与 iOs 版本相同的图标。
起初他们给我发了一封电子邮件说:
感谢您提交 nameOfMyApp(到 Google Play。
我审查了您的应用,但由于未经授权使用受版权保护的内容而不得不拒绝它。
他们在暂停我的申请后给我发了第二封电子邮件说:
经过审核,nameOfMyApp已被暂停并从 Google Play 中删除,因为它违反了假冒政策。您的应用与 Play 商店中的现有应用相同。
真的,这对我来说是个大问题。
谁知道如何解决这个问题?
c# - Xamarin Forms Android Store crashes when i download the app, debugs perfectly on phone from VS
This is my first commit on google play store. I am using Xamarin Forms and when i run my app localy on my android phone, i have no issues.
When I Archive and Distribute the App within VS using Archive Manager and download it on my phone, or any other android phone, the App crashes before going to the 1st screen.
Under Play Console I can see the following error on the Pre-Lunch report
Blockquote FATAL EXCEPTION: main Process: com.*****.*****, PID: 8647 android.runtime.JavaProxyThrowable: Xamarin.Forms.Xaml.XamlParseException: Position 30:125. No method OnMenuItemSelected2 found on type *****.Menus.MainPageV2 at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue (System.Object xamlelement, Xamarin.Forms.Xaml.XmlName propertyName, System.Object value, System.Object rootElement, Xamarin.Forms.Xaml.INode node, Xamarin.Forms.Xaml.HydrationContext context, System.Xml.IXmlLineInfo lineInfo) [0x000ee] in :0 at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit (Xamarin.Forms.Xaml.ValueNode node, Xamarin.Forms.Xaml.INode parentNode) [0x00072] in :0 at Xamarin.Forms.Xaml.ValueNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00000] in :0 at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in :0 at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in :0 at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in :0 at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in :0 at Xamarin.Forms.Xaml.XamlLoader.Visit (Xamarin.Forms.Xaml.RootNode rootnode, Xamarin.Forms.Xaml.HydrationContext visitorContext) [0x00083] in :0 at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.String xaml) [0x0008f] in :0 at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.Type callingType) [0x0002f] in :0 at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml] (TXaml view, System.Type callingType) [0x00000] in :0 at ****.Menus.MainPageV2.InitializeComponent () [0x00000] in :0 at ****.Menus.MainPageV2..ctor () [0x00006] in :0 at ****.App..ctor () [0x0000c] in :0 at ****.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00022] in :0 at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in :0 at (wrapper dynamic-method) System.Object:efb18139-d766-47ea-a9bd-57beaf3952f0 (intptr,intptr,intptr) at md5684c7b5241d0a7c4d4ea0533a804cbec.MainActivity.n_onCreate(Native Method) at md5684c7b5241d0a7c4d4ea0533a804cbec.MainActivity.onCreate(MainActivity.java:29) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
The thing is that my Menus.MainPageV2 includes OnMenuItemSelected2 which is run just fine when testing localy
The automated Google Test results on the on the Pre-Lunch report are failing for all testing devices with the same error.
Things I tried changing, re-Archiving and Distributing: - Closed VS, cleaned bin, obj directories and Re-Built - Upgraded to the latest Xamarin Forms Nuget - Linking with None, Sdk and User Assemblies, Sdk Assemblies only
Anyone have any ideas on what else i might try to get this to work ?
Thank you for your time.
google-calendar-api - 通过api获取谷歌日历中日历的状态
我曾经通过以下 API 调用使用日历 ID 获取日历名称:
然后我得到一个回应
现在我怎么能知道这个日历的状态,它是否通过谷歌日历 API 被删除。请帮我。
android - Google Play Beta 测试中的不同软件包名称
我已经使用这个包名部署了我的生产应用程序com.companyname.appandroid
。现在我希望我在 Beta Releasing 中的开发和 QA 应用程序能够以更多的后缀(如com.companyname.appandroid.qa
和com.companyname.appandroid.dev
.
这怎么可能?
oauth-2.0 - 邮递员:OAuth2:获取新的访问令牌
我正在尝试使用 POSTMAN 测试我的 API,但在 POSTMAN (OAuth2) 的授权选项卡中获取“新访问令牌”时遇到问题,
所以我的应用程序已经在谷歌控制台中注册,我使用带有谷歌策略的护照进行连接,它对我有用。
我还在谷歌控制台注册了邮递员:
现在我正在尝试获取访问令牌,我认为问题出在“Auth URL”和“Access Token URL”中:
请帮我!
javascript - Firebug 和 google 控制台都不允许更改通过 pdf.js 呈现的内容,为什么?如何?
无法使用 firebug 和 google 更改通过 pdf.js 呈现的内容(DOM 元素)。pdf.js 如何实现这一点,我怎样才能在我的 html 页面中做同样的事情
google-search-console - 搜索控制台抛出了一个新错误,影响了我网站的 95 个页面
显示的错误是“这些主机提供的站点资源被 Googlebot 阻止。如果 Googlebot 无法访问您页面上的重要资源,则该页面可能被错误地编入索引。”主机名是https://checkout.razorpay.com