This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error { | |
NSString *code = [GPPSignIn sharedInstance].homeServerAuthorizationCode; | |
// Send code to server! | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configure sign in. | |
[GPPSignIn sharedInstance].homeServerClientId = @"123456-dfafdafdaf.googleusercontent.com"; | |
[GPPSignIn sharedInstance].clientID = @"123456789-fr5f0j07iqodrel0ul2864ihcgs3pq.apps.googleusercontent.com"; | |
[GPPSignIn sharedInstance].homeServerClientID = @"123456789-re29be622bntvec61dk5lsafq20rke.apps.googleusercontent.com"; | |
[GPPSignIn sharedInstance].delegate = self; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tek; | |
use Symfony\Component\HttpFoundation\Request; | |
class Session { | |
public $sessionid; | |
public $url; | |
public $title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/../../config.php'; | |
require_once __DIR__.'/../vendor/autoload.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Silex\Application; | |
session_start(); | |
$app = new Application(); | |
$client = buildClient(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" title="roboto"> | |
<title>Frowns</title> | |
<link rel="stylesheet" href="/template/basestyles.css"> | |
<!-- // [START mystyle] --> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.devrel.samples.gmstest.app; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $client is authenticated with scopes "profile" and "email" | |
$service = new Google_Service_Plus($client); | |
$user = $service->people->get("me"); | |
$name = $user->displayName; | |
$family_name = $user->name->familyName; | |
$given_name = $user->name->givenName; | |
$picture = $user->image->url; | |
// There can be > 1 email address, we want the main one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Quiz; | |
use Symfony\Component\HttpFoundation\Request; | |
class Answer { | |
public $userid; | |
public $questionid; | |
public $country; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Quiz; | |
use Symfony\Component\HttpFoundation\Request; | |
class Question { | |
public $questionid; | |
public $starttime; | |
public $questiontext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new GoogleApiClient.Builder(this) | |
.addApi(Drive.API) | |
.addScope(Drive.SCOPE_FILE) | |
.addApi(Plus.API, plusOptions) | |
.addScope(Plus.SCOPE_PLUS_LOGIN) | |
.addConnectionCallbacks(this) | |
.addOnConnectionFailedListener(this) | |
.build(); |