Advertisement
Guest User

GPlus Quickstart

a guest
Aug 5th, 2014
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. <div id="gConnect">
  2.     <button class="g-signin"
  3.         data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email"
  4.         data-requestvisibleactions="http://schemas.google.com/AddActivity"
  5.         data-clientId="ThisIsWhereTheClientIdGoes"
  6.         data-accesstype="offline"
  7.         data-callback="onSignInCallback"
  8.         data-theme="dark"
  9.         data-cookiepolicy="single_host_origin">
  10.     </button>
  11.   </div>
  12.  
  13. //Scopes in the handler
  14.  IAuthorizationCodeFlow flow =
  15.                         new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer
  16.                         {
  17.                             ClientSecrets = secrets,
  18.                             Scopes = new string[] { PlusService.Scope.PlusLogin, PlusService.Scope.UserinfoEmail }
  19.                         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement