Skip to content

Instantly share code, notes, and snippets.

// 0. Include the sign in with Google+ button. https://developers.google.com/+/mobile/ios/#sign_in_with_google
...
// 1. Create a |GTLServicePlus| instance to send a request to Google+.
GTLServicePlus* plusService = [[[GTLServicePlus alloc] init] autorelease];
plusService.retryEnabled = YES;
// 2. Set a valid |GTMOAuth2Authentication| object as the authorizer.
[plusService setAuthorizer:appDelegate.auth];
@chirags
chirags / gist:1296676
Created October 18, 2011 20:48
Instant Google+ Search with mustache.js
<!--
* Copyright (c) 2011 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
@chirags
chirags / gist:984703
Created May 21, 2011 17:26
OAuth 2.0 for Android Apps
/*
* Copyright 2011 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
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table}</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
<url></url>
</urls>
<Module>
<ModulePrefs title="yql">
<Require feature="opensocial-data" />
<Require feature="opensocial-templates"/>
</ModulePrefs>
<Content><![CDATA[
<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/markup">
<os:HttpRequest key="yql" href="http://query.yahooapis.com/v1/public/yql?q=select%20title%2Cabstract%20from%20search.web%20where%20query%3D%22pizza%22&format=json"/>
</script>
<script type="text/os-template" require="yql">${yql.content.query.results}</script>
We couldn’t find that file to show.
ssh://USERNAME@PROJECTNAME.git.sourceforge.net/gitroot/PROJECTNAME