在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):seejohnrun/google_plus开源软件地址(OpenSource Url):https://github.com/seejohnrun/google_plus开源编程语言(OpenSource Language):Ruby 100.0%开源软件介绍(OpenSource Introduction):GooglePlusThis is a Ruby client library for the Google+ API. Installation
DocumentationAuthenticationTo make calls to the Google+ API, you have to either authenticate via OAuth or provide an API key (which you can get from the Google APIs Console. To set your API key and get started, use:
That key will then be used on all of your requests. If you want to change it for an individual request, you can use a param, like:
If you want to use OAuth for authorization, you can use a method such as OmniAuth's GoogleOAuth2 Strategy to get an
If you want to set it for an individual request (or series of requests), you can use a param like above:
PeopleGetting information about a person is easy, given that you have their Google+ ID:
Accessing attributes of a
You can read more about the fields available for a ActivitiesExactly the same as people, you can get activities by ID:
And once you have an activity, you can move back to its person using People do ThingsLastly, you can get a list of activities for a person, which is returned as a
Or if you just want one page, you can have it:
You can also set the cursor size at any time using any of these variations:
Plusoners and ResharersYou can call CommentsYou can get comments for an acitivty, using its ID:
Accessing attributes of a Getting comments for an activity is done just like getting activities for a person:
SearchingYou can search for people or activities using the respective
Setting optionsOn any of these calls, you can provide options like Dependencies
License(The MIT License) Copyright © 2011 John Crepezzi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论