Giter Site home page Giter Site logo

googlearchive / gplus-quickstart-csharp Goto Github PK

View Code? Open in Web Editor NEW
35.0 17.0 39.0 1.07 MB

This quick-start app is built in C# / .NET and lets you get started with the Google+ platform in a few minutes.

Home Page: https://developers.google.com/+/quickstart/csharp

ASP 0.86% C# 59.50% HTML 39.64%

gplus-quickstart-csharp's Introduction

gplus-quickstart-csharp's People

Contributors

cartland avatar gguuss avatar ianbarber avatar joannasmith avatar samtstern avatar silvolu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gplus-quickstart-csharp's Issues

Javascript error - Looping through people list

I found a problem in javascript function appendCircled, which should be:

$('#visiblePeople').append('Number of people visible to this app: ' +
          **people.length** + '<br/>');
      for (var personIndex in people) {
        person = **people[personIndex]**;
        $('#visiblePeople').append('<img src="' + person.image.url + '">');
      }

I had to change this to make it work.
Cheers

small bug

should be token.AccessToken line 238

PlusService.Scope.UserinfoProfile doesn't work

if i add
Scopes = new string[] { PlusService.Scope.PlusLogin, PlusService.Scope.UserinfoProfile}

it gives me invalid scope error

I wish google would test this at least once before officially pushing it

Disconnect error

In code behind, I got an error every time I tried to disconnect.

if (context.Request.Path.Contains("/disconnect"))
            {
                token = (TokenResponse)context.Session["authState"];
                string tokenToRevoke = (token.RefreshToken  != null) ?
                    token.RefreshToken : token.AccessToken;

                //HERE
                WebRequest request = WebRequest.Create(
                    "https://accounts.google.com/o/oauth2/revoke?token=" +
                    token);

                WebResponse response = request.GetResponse();

                context.Session["authState"] = null;

                context.Response.Write(
                    response.GetResponseStream().ToString().ToCharArray());
                return;
            }

I assume we have to pass tokenToRevoke instead of token?

solution has package reference issues

cloning into VS and running causes issues. I tried to both "update-package -reinstall" from prompt and right clicking and choosing "restore all nuget packages"

auth2.grantOfflineAcces error

I'm having the following exception:

Uncaught TypeError: auth2.grantOfflineAccess is not a function
at Object.reauthorize [as error] (index.html:280)

For what I could see looking about this error, is that the grantOfflineAccess Method really doesn´t exists... and I haven't been able to find a solution...

Anyone have found a solution?

Thanks!

errors at startup

the project actually doesn't work
when i click login it tells me

Uncaught SecurityError: Blocked a frame with origin "http://localhost:4567" from accessing a frame with origin "https://accounts.google.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.