我希望使用Google从C#应用程序中获取Google中的数据。
我有我的用户的电子邮件和密码,所以我不需要OAuth或其他什么,我正在跟踪。
下面是一个示例代码:
FeedQuery query = new FeedQuery();
Service service = new Service("cal","company-app-v1.0");
service.setUserCredentials("fname.lname@gmail.com", "passphrase");
query.Uri = new Uri("h
我正在尝试使用windows phone 8.1的Gmail API。app.This是我从获得的代码。
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Compilation;
using System.Text;
using System.Text.RegularExpressions;
using System.Web.Routing;
using System.W
我对api adwords有一个问题。我没有来自code.google.com/apis/ client_secret的控制台。我创建了项目,并为我的应用程序添加了应用程序接口访问权限,但我在盒子服务帐户中看不到client_secret。
我有客户端ID、电子邮件地址、公钥指纹、私钥和client_secret.json。在php的api adwords中是配置文件auth.ini:
[OAUTH2]
; If you do not have a client ID or secret, please create one of type
; "installed applicat
我正在使用google- API -java-client访问Google Cloud Storage API。它在我的本地机器和一些服务器上运行得很好。但它在生产服务器上失败了,出现了一个400Bad Request (错误: invalid_grant)。我在使用Google Adwords API时遇到了类似的问题,Google API Adwords支持解决了这个问题。我想他们刚刚把我用过的服务器的IP列入了白名单。我是否需要在Google Cloud Storage API中添加权限?这将是奇怪的,因为它在我的本地pc上工作。
public class StorageObj {
我正在从Python脚本运行Google可执行API。我使用一个服务帐户来完成这个操作,这样它就可以被安排到无人值守的运行中。
我已经尝试使用我自己的帐户来做这件事,OAuth通过打开浏览器页面并请求授权来工作。在我授权后,脚本将被执行。我已经按照下面的链接中的建议将范围授权到服务帐户。
from __future__ import print_function
from googleapiclient import errors
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2
我见过像和这样的问题,但这两个问题都没有解决如何从字符串名称创建一个类实例,如果你已经有了一个命名空间,并且类在一个别名空间中:
<?php
namespace my\project;
require 'vendor/autoload.php';
//Example aliased classes, more may be defined elsewhere
use League\OAuth2\Client\Provider\Google;
use Stevenmaguire\OAuth2\Client\Provider\Microsoft;
//This is m