标签: google-api

这个时间戳是什么意思

所以我从Google API获得了以下格式的时间戳:

2012-08-21T20:19:08.452Z
Run Code Online (Sandbox Code Playgroud)

我的问题是...... Z之前是什么.452?我相信Z表示Zulu时间又名UTC,但是那是什么.452 ....那些分数是一秒吗?

php time timestamp google-api

1
推荐指数
1
解决办法
283
查看次数

如何针对Google Api撤消身份验证令牌客户端

我正在尝试使用Google Api客户端代码撤消令牌.

我的代码看起来像这样:

$.get("https://accounts.google.com/o/oauth2/revoke?token=" + accessToken, function () {
        window.location.reload();
    }); 
Run Code Online (Sandbox Code Playgroud)

我收到以下错误?

XMLHttpRequest无法加载 https://accounts.google.com/o/oauth2/revoke?token=tokenishere来自Access-Control-Allow-Origin不允许来源 http://balblabla.com.

javascript jquery oauth google-api google-analytics-api

1
推荐指数
1
解决办法
4408
查看次数

PHP Google API Client v3获取联系人

我仍然遇到新的google_api_client php库的问题.我正在尝试检索用户的联系人.

我非常接近正确的解决方案......我的意思是,我得到了所有结果,但是无法解析它.

可能是因为我对XML解析器不够强大.经过测试和测试......我得到了这个解决方案(基于Google的示例文件):

...
$req = new apiHttpRequest("https://www.google.com/m8/feeds/contacts/default/full");         
$val = $client->getIo()->authenticatedRequest($req);
$response = simplexml_load_string($val->getResponseBody());

foreach($response->entry as $entry)
{
    $child = $entry->children("http://schemas.google.com/g/2005");
    $mail_info = $child->attributes();
}
...
Run Code Online (Sandbox Code Playgroud)

在$ response中,我可以获得存储联系人姓名的title字段,在$ mail_info中有一个对象,当我收到电子邮件地址时,我会看到地址字段.

这是SAD和UGLY解决方案......如果我想要公司名称,地址......电话号码......照片怎么办?所有这些信息在哪里?

如何在一个优秀而干净的解决方案中使用Google响应?

任何人都可以给我一些帮助.再见

php google-api xml-parsing google-api-php-client

1
推荐指数
1
解决办法
5188
查看次数

如何在Jenkins上使用google api创建多配置矩阵项目?

我正在尝试配置矩阵项目以在不同的模拟器配置上运行我的apk但当我尝试使用"Google Inc.:Google API:16"作为我的操作系统目标时,项目不是构建.当我尝试在Android 4.1上构建它可行时,但我需要使用google api来运行它.我应该使用os参数输入矩阵以使用google API创建模拟器?

触发ldpi,谷歌公司:谷歌API:16,WVGA ldpi,谷歌公司:谷歌API:16,WVGA完成结果失败

  • java.io.IOException:mkdirs失败:...\MatrixProject\density\ldpi\os\Google Inc.:Google APIs:16\resolution\WVGA at hudson.filePath.mkdirs(FilePath.java:973)at hudson. model.AbstractProject.checkout(AbstractProject.java:1323)at hudson.model.AbstractBuild $ abstractBuildExecution.defaultCheckout(AbstractBuild.java:676)at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)at hudson.model.AbstractBuild $ abstractBuildExecution.run(AbstractBuild.java:581)位于hudson.model.Run.exe执行(运行.java:1516)hudson.matrix.MatrixRun.run(MatrixRun.java:146)hudson.model.ResourceController.execute( ResourceController.java:88)at hudson.model.Executor.run(Executor.java:236)[FINDBUGS]跳过发布者,因为构建结果是FAILURE

android google-api emulation jenkins

1
推荐指数
1
解决办法
344
查看次数

1
推荐指数
1
解决办法
1194
查看次数

无法显示Google Directions API之间的路线.iOS 6

如果路线有航点,我在MapView中显示路线时遇到问题.我使用DIRECTIONS GOOGLE API:

https://developers.google.com/maps/documentation/directions/

路线不是使用道路绘制的.

有帮助吗?谢谢!!

麻烦图片: 在此输入图像描述

在此输入图像描述

代码:

reponse = [self getRouteFromGoogleApiWithPoints:arrayOfCoords andMode:@"driving" error:error];

if(reponse == nil)
{
   UIAlertView *succes= [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"txtError", nil) message:NSLocalizedString(@"ServerError", nil) delegate: self cancelButtonTitle: @"OK" otherButtonTitles: nil];
        [succes show];
}
else
{
        NSArray *routes = [reponse objectForKey:@"routes"];
        NSDictionary *route = [routes objectAtIndex:0];
        NSDictionary *polylineOverview = [route objectForKey:@"overview_polyline"];

        NSString *polylinePoints = [polylineOverview objectForKey:@"points"];
        NSArray *decodedPolyline = [self decodePolyLine:polylinePoints];

        CLLocationCoordinate2D coords[[decodedPolyline count]];
        int i=0;
        for(CLLocation* loc in decodedPolyline)
        {
            CLLocationCoordinate2D c;
            c.latitude = loc.coordinate.latitude;
            c.longitude = loc.coordinate.longitude; …
Run Code Online (Sandbox Code Playgroud)

objective-c google-api mkmapview directions ios6

1
推荐指数
1
解决办法
1470
查看次数

无法从Google API获取令牌

我正在尝试使用Google OAuth2 API为我的Windows 8应用程序交换我的授权代码,但我不断收到HTTP 400错误.

这是我执行请求的方式(简化):

var url = "https://accounts.google.com/o/oauth2/token";
var body = "code=4/LEXF1iAVRZvfCfdQg9r1aFqoYDgV&client_id=904019870963.apps.googleusercontent.com&client_secret=[removed]&redirect_uri=urn:ietf:wg:oauth:2.0:oob&grant_type=authorization_code";

HttpClient httpClient = new HttpClient();
HttpResponseMessage response = await httpClient.PostAsync(new Uri(url), new StringContent(body));

response.EnsureSuccessStatusCode();
Run Code Online (Sandbox Code Playgroud)

Visual Studio通常只是给我一个HTTP 400错误的请求错误,当我在Fiddler中尝试同样的事情时我也得到了一个HTTP 400错误,但是这个内容如下:

21
{
  "error" : "invalid_request"
}
0
Run Code Online (Sandbox Code Playgroud)

我阅读了有关Google OAuth的所有文档,我在Google和StackOverflow上搜索了此问题,我尝试在我的代码中更改所有不同类型的内容(UrlEncode等),我使用了Google API Playground来查看它的请求类型执行并将其与我自己的请求进行比较(除了返回URL,身份验证代码和用户代理之外,找不到区别).无论我做什么,我都无法做到这一点,我已经被困了几个小时了.

有人可以帮我从这里出去吗?

authentication google-api oauth-2.0 windows-8 windows-runtime

1
推荐指数
1
解决办法
528
查看次数

Google Calendar JavaScript API-添加多个事件

当我尝试通过javascript v3 api将多个事件添加到Google日历时遇到了一个问题。

我有一个数组,条目是这样的事件:

newEvent = {
    "summary": response[i].name+" BDay!!",
    "start": {
      "dateTime": date
    },
    "end": {
      "dateTime": date
    }
  };

  events[i]=newEvent;
Run Code Online (Sandbox Code Playgroud)

之后,我打电话给Google Calendar API以添加事件:

var request;
for(var j = 0; j<events.length; j++) {

  console.log(events[j]);

  request = gapi.client.calendar.events.insert({
    'calendarId': calendarId,
    'resource': events[j]
  });
  request.execute(function(resp) {
   console.log(resp);
 });
}
Run Code Online (Sandbox Code Playgroud)

但是,事实证明,所有事件都放在日历的同一日期(实际上是数组events []中的最后一个日期)。我认为可能是因为请求是回调函数,但我不确定。

希望能有所帮助!

javascript google-calendar-api google-api

1
推荐指数
1
解决办法
3542
查看次数

从Google通讯录中获取Google+ ID

我正在使用Google通讯录API提取用户的联系人电子邮件地址和姓名.有没有办法获得这些人的Google+ ID?

google-api google-contacts-api google-plus

1
推荐指数
1
解决办法
1700
查看次数

将我的项目连接到Google+正在等待处理

在Google API的信息中心中,您可以选择申请与Google+信息页的连接.
我已要求连接到我在Google+中创建的产品页面,但自此(几周)以来,该页面一直处于"待处理"状态.
我没有找到任何错误或我应该做什么的线索.
有什么建议?

google-api google-plus

1
推荐指数
1
解决办法
373
查看次数