<?php
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* The Buzz service implementation
*
* Generated by http://code.google.com/p/google-api-php-client/
* Generated from: http://www.googleapis.com/discovery/0.1/describe?api=buzz&apiVersion=v1
**/
class apiBuzzService {
// Variables that the apiServiceResource implementation depends on
private $serviceName = 'buzz';
private $version = 'v1';
private $baseUrl = 'https://www.googleapis.com/';
private $io;
// apiServiceResource's that are used internally
private $photos;
private $feeds;
private $activities;
private $people;
private $groups;
private $comments;
private $related;
/**
* Constructs the internal service representations and does the auto-magic configuration required to drive them
*/
public function __construct(apiClient $apiClient) {
$apiClient->addService('buzz', 'v1');
$this->io = $apiClient->getIo();
$this->photos = new apiServiceResource($this, $this->serviceName, 'photos', json_decode('{"methods":{"insert":{"pathUrl":"buzz\/v1\/photos\/{userId}\/{albumId}","rpcName":"buzz.photos.insert","httpMethod":"POST","methodType":"rest","parameters":{"albumId":{"parameterType":"path","pattern":"[^\/]+","required":true},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}}}}', true));
$this->feeds = new apiServiceResource($this, $this->serviceName, 'feeds', json_decode('{"methods":{"insert":{"pathUrl":"buzz\/v1\/feeds\/{userId}\/@self","rpcName":"buzz.feeds.insert","httpMethod":"POST","methodType":"rest","parameters":{"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}},"update":{"pathUrl":"buzz\/v1\/feeds\/{userId}\/@self\/{siteId}","rpcName":"buzz.feeds.update","httpMethod":"PUT","methodType":"rest","parameters":{"siteId":{"parameterType":"path","pattern":"[^\/]+","required":true},"max-results":{"parameterType":"query","required":false},"c":{"parameterType":"query","required":false},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}},"list":{"pathUrl":"buzz\/v1\/feeds\/{userId}\/{scope}","rpcName":"buzz.feeds.list","httpMethod":"GET","methodType":"rest","parameters":{"scope":{"parameterType":"path","pattern":"@.*","required":true},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}},"delete":{"pathUrl":"buzz\/v1\/feeds\/{userId}\/@self\/{siteId}","rpcName":"buzz.feeds.delete","httpMethod":"DELETE","methodType":"rest","parameters":{"siteId":{"parameterType":"path","pattern":"[^\/]+","required":true},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}}}}', true));
$this->activities = new apiServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods":{"update":{"pathUrl":"buzz\/v1\/activities\/{userId}\/{scope}\/{postId}","rpcName":"buzz.activities.update","httpMethod":"PUT","methodType":"rest","parameters":{"scope":{"parameterType":"path","pattern":"@.*","required":true},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"postId":{"parameterType":"path","pattern":".*","required":true},"hl":{"parameterType":"query","required":false},"abuseType":{"parameterType":"query","required":false}}},"extractPeopleFromSearch":{"pathUrl":"buzz\/v1\/activities\/search\/@people","rpcName":"buzz.activities.extractPeopleFromSearch","httpMethod":"POST","methodType":"rest","parameters":{"lon":{"parameterType":"query","required":false},"max-results":{"parameterType":"query","required":false},"c":{"parameterType":"query","required":false},"bbox":{"parameterType":"query","required":false},"q":{"parameterType":"query","required":false},"alt":{"parameterType":"query","required":false},"pid":{"parameterType":"query","required":false},"radius":{"parameterType":"query","required":false},"lat":{"parameterType":"query","required":false},"hl":{"parameterType":"query","required":false}}},"delete":{"pathUrl":"buzz\/v1\/activities\/{userId}\/{scope}\/{postId}","rpcName":"buzz.activities.delete","httpMethod":"DELETE","methodType":"rest","parameters":{"scope":{"parameterType":"path","pattern":"@.*","required":true},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"postId":{"parameterType":"path","pattern":".*","required":true},"hl":{"parameterType":"query","required":false}}},"insert":{"pathUrl":"buzz\/v1\/activities\/{userId}\/@self","rpcName":"buzz.activities.insert","httpMethod":"POST","methodType":"rest","parameters":{"preview":{"parameterType":"query","required":false},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"photo":{"parameterType":"query","required":false},"hl":{"parameterType":"query","required":false}}},"list":{"pathUrl":"buzz\/v1\/activities\/{userId}\/{scope}","rpcName":"buzz.activities.list","httpMethod":"GET","methodType":"rest","parameters":{"max-comments":{"parameterType":"query","required":false},"scope":{"parameterType":"path","pattern":"@(self|public|consumption|liked|comments)*","required":true},"max-results":{"parameterType":"query","required":false},"c":{"parameterType":"query","required":false},"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"max-liked":{"parameterType":"query","required":false},"hl":{"parameterType":"query","required":false}}},"get":{"pathUrl":"buzz\/v1\/activities\/{userId}\/@self\/{postId}","rpcName":"buzz.activities.get","httpMethod":"GET","methodType":"rest","parameters":{"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"postId":{"parameterType":"path","pattern":".*","required":true},"hl":{"parameterType":"query","required":false}}},"search":{"pathUrl":"buzz\/v1\/activities\/search","rpcName":"buzz.activities.search","httpMethod":"POST","methodType":"rest","parameters":{"lon":{"parameterType":"query","required":false},"max-results":{"parameterType":"query","required":false},"c":{"parameterType":"query","required":false},"bbox":{"parameterType":"query","required":false},"q":{"parameterType":"query","required":false},"alt":{"parameterType":"query","required":false},"pid":{"parameterType":"query","required":false},"radius":{"parameterType":"query","required":false},"lat":{"parameterType":"query","required":false},"hl":{"parameterType":"query","required":false}}}}}', true));
$this->people = new apiServiceResource($this, $this->serviceName, 'people', json_decode('{"methods":{"get":{"pathUrl":"buzz\/v1\/people\/{userId}\/@self","rpcName":"buzz.people.get","httpMethod":"GET","methodType":"rest","parameters":{"alt":{"parameterType":"query","required":false},"userId":{"parameterType":"path","pattern":"[^\/]+","required":true},"hl":{"parameterType":"query","required":false}}},"search":{"pathUrl":"buzz\/v1\/people\/search","rpcName":"buzz.people.search","httpMethod":"POST","methodType":"rest","parameters":{"max-res
没有合适的资源?快使用搜索试试~ 我知道了~
oauth2 php客户端的例子
共60个文件
php:53个
sh:2个
readme:2个
4星 · 超过85%的资源 需积分: 34 81 下载量 26 浏览量
2011-08-16
17:18:01
上传
评论 1
收藏 89KB ZIP 举报
温馨提示
OAuth 2.0 is the next evolution of the OAuth protocol which was originally created in late 2006. OAuth 2.0 focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices. This specification is being developed within the IETF OAuth WG and is based on the OAuth WRAP proposal.
资源推荐
资源详情
资源评论
收起资源包目录
google-api-php-client.zip (60个子文件)
google-api-php-client
src
apiClient.php 6KB
external
URITemplateParser.php 7KB
OAuth.php 21KB
contrib
apiEasyhybridService.php 3KB
apiTranslateService.php 4KB
apiLatitudeService.php 6KB
apiDiacritizeService.php 3KB
apiBuzzService.php 33KB
apiPredictionService.php 5KB
apiModeratorService.php 19KB
auth
apiOAuth.php 11KB
apiAuthNone.php 1KB
apiAuth.php 1KB
cache
apiCache.php 1KB
apiFileCache.php 5KB
apiMemcacheCache.php 4KB
apiApcCache.php 3KB
service
apiService.php 2KB
apiBatch.php 1KB
apiServiceResource.php 5KB
apiServiceRequest.php 3KB
config.php 3KB
io
apiHttpRequest.php 4KB
apiRPC.php 2KB
apiREST.php 7KB
apiIO.php 1KB
apiCurlIO.php 11KB
generator
apiGenerator.php 8KB
generate.php 2KB
generate.sh 493B
LICENSE 10KB
examples
index.php 5KB
buzz
getPublicStream.php 2KB
index.php 770B
css
examples.css 3KB
includes
header.php 1KB
displayBuzzPost.php 5KB
footer.php 164B
getConsumptionStream.php 2KB
makeRelease.sh 300B
NOTICE 285B
README 0B
test
AllTests.php 1KB
buzz
ActivitiesTest.php 9KB
BuzzTests.php 2KB
RelatedTest.php 2KB
FeedsTest.php 1KB
GroupsTest.php 4KB
CommentsTest.php 4KB
PeopleTest.php 7KB
apiBuzzTest.php 2KB
PhotosTest.php 978B
README 122B
general
ServiceTest.php 994B
GeneralTests.php 1KB
GeneratorTest.php 996B
ApiClientTest.php 996B
AuthTest.php 992B
IoTest.php 989B
CacheTest.php 992B
共 60 条
- 1
sunbo7758
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页