How to do google signin (People API) RRS feed

  • Question

  • User944339287 posted

    Hi guys.. i wonder how to implement google signin by using People API?

    Firstly, I can get profile data in API Explorer at https://developers.google.com/people/api/rest/v1/people/get

    I wanna implement google sign-in in my web application now, but i can only get Client ID & Secret Key from https://console.developers.google.com/

    how can i get API Key for People API?

    Below is my code to get profile data in my web application:

            Dim wc As WebClient = New WebClient With {
                .Encoding = Encoding.UTF8
            Dim client_id As String = ""
            Dim client_secret_key As String = ""
            Dim key As String = "XXXXXXXXXXXXXXXXXXXX"
                Dim jsonstring As String = wc.DownloadString("https://people.googleapis.com/v1/people/me?personFields=names&key=" & key & "")
                Dim jobj As JObject = CType(JsonConvert.DeserializeObject(jsonstring), JObject)
                For Each entry In jobj("items")
            Catch ex As Exception
            End Try

    Monday, March 9, 2020 7:37 AM

All replies