谷歌API从Android应用程序发送请求,谷歌加 [英] Google API to send request from android app to google plus

查看:278
本文介绍了谷歌API从Android应用程序发送请求,谷歌加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款使用Android操作系统的应用程序。

I am developing one android application.

大家都知道Facebook的SDK提供的功能来发送请求使用请求对话框的其他用户。

As we all know Facebook SDK provides functionality to send request to other users using Request Dialog.

https://developers.facebook.com/docs/android/send-requests

我上面提到链接,说我们如何可以发送请求给其他Facebook用户,并且响应该请求将显示在他们的个人资料作为通知用户。

I referred above link that says how we can send request to other facebook users and in response that request will be shown to the user in their profile as notification.

所以我的问题是,有没有同类型的API谷歌加,我可以用它来发送一些类型的请求,从Android应用程序谷歌加和方法一样的Facebook我的要求会显示给用户谷歌加配置文件中的?

So my question is, Is there any same kind of API for Google Plus that i can use to send some kind of request from Android Application to Google Plus and same way as facebook my request will be shown to that users Google Plus profile?

我已经用谷歌加API和OAuth2.0。

I already used Google Plus API and OAuth2.0.

我是新来的API使用,如果可能的话,请给我的例子了。

I am new to API Usage if possible then please give me the example too.

编辑: -

我发现下面的链接,说,这是不工作的谷歌请查看以下链接:

https://开头code.google.com/p/google-plus-platform/issues/detail?id=41

编辑: -

创建通知在谷歌加不加任何配置文件创建任何职务。

Create notification in Google Plus without creating any posts in any profile.

下面的照片就是和榜样的游戏。

Here the photo is just and example of game.

但在谷歌加。

推荐答案

有没有办法张贴通知喜欢使用谷歌API的Facebook。 您可以使用Google+的API将发布在用户的配置文件没有明确的用户action.By默认其私人及功放创建一个应用程序的活动;隐。用户必须采取份额行动,使可见光。应用程序活动只看到用户,因为它不能直接贴在像Facebook或Twitter流。因此,你不能达到同样的效果,如Facebook或Twitter。

There is no way to post notification like facebook using google API. You can create a app activity using Google+ API that will post on the user's profile without explicit user action.By default its private & hidden. User must have to take share actions to make that visible. App activities are only visible to user because its not posted directly on stream like facebook or twitter. Hence you can not achieve the same result like facebook or twitter.

有关发布应用程序的活动,您可以使用 Google+的时刻:插入 。它需要得到使用范围从用户的权限。对于Android SDK中使用可以使用管理中的应用程序的活动谷歌

For posting the application activity you can use Google+ Moments: insert. It needs to get the permission using scope from user. For android sdk use can use Manage app activities in Google

的范围: https://developers.google.com/+/api/latest/moments/insert https://www.googleapis.com/auth/plus.login

Scopes: https://developers.google.com/+/api/latest/moments/insert https://www.googleapis.com/auth/plus.login

使用谷歌应用程序域可以自动创建具有知名度仅限于用户或圆一个职位。 对于发布的应用程序的活动,你必须使用活动:插入

Using Google App Domain can automatically create a post with visibility limited to the user or circle. For posting the application activity you have to use Activities: insert

的范围: https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.me

Scopes: https://www.googleapis.com/auth/plus.stream.write https://www.googleapis.com/auth/plus.me

结论:您必须考虑使用基于您的要求API的一个决定。我建议玩这两个API来检查的差异和放大器;其用户配置文件的限制。第一次尝试是的Google+域API ,因为它会发布消息用户流。

Conclusion: You have to take a decision to use one of the API based on your requirement. I would suggest play with both the API to check the difference & its limitation in user profile. First try with Google+ Domain API as it will post message on user stream.

这篇关于谷歌API从Android应用程序发送请求,谷歌加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆