Notice Google+ API is shutting down on March 7th, 2019.
A very basic demonstration of how you can create an application that uses Google+ Sign-In in WPF.
The code demonstrates:
- Triggering the OAuth v2 flow
- Getting the authorization code after the flow concludes
- Exchanging the authorization code for OAuth v2 credentials
- Configuring the Google+ Client with the credentials
- Performing API requests against Google+ using the API
- Open the project.
- Create a client ID and client secret for your application on the Google API Console.
- Replace
YOUR_CLIENT_ID
andYOUR_CLIENT_SECRET
with the ones you created.