Asked by:
How to intergrate google drive with windows store app ?

General discussion
-
I am creating an application for managing all cloud storage providers for windows store app ,i am done with dropbox and now i'm struggling to get the proper information about google drive any help will be appreciated .
19karabo91
Friday, October 25, 2013 8:52 AM
All replies
-
You will need to contact Google for information on Google drive. I suspect they provide a REST API you can connect to.
You can find the Google Drive docs at https://developers.google.com/drive/ .
--Rob
- Edited by Rob Caplan [MSFT]Microsoft employee, Moderator Friday, October 25, 2013 7:28 PM add link
Friday, October 25, 2013 7:27 PMModerator -
Thanks for your help right now i'm able to authenticate a user to access google drive ,but in return i get a success code that i'm supposed to post back so i can get an accessToken .My question is how do i go about posting that success code to google drive restful service ?
19karabo91
Monday, October 28, 2013 7:16 AM -
If Google is using OAuth then you should be able to connect with a Web Authentication Broker. See Quickstart: Connecting to an online identity provider .
Otherwise you can use HttpClient to talk to their service (a sample is linked from that documentation), but again you'll have to talk to Google for details about what exactly they expect.
--Rob
Monday, October 28, 2013 8:24 PMModerator -
I am already using web Authentication broker an getting a success code in return which i have to post back to google using this url :(https://accounts.google.com/o/oauth2/token) ,and i have to add parameters as well.My question is how do i make that post or structure it correctly to get the access toke and refresh token . you can check it out on this link https://developers.google.com/accounts/docs/OAuth2ForDevices .Thanx
19karabo91
- Edited by 19karabo91 Tuesday, October 29, 2013 8:38 AM
Tuesday, October 29, 2013 8:37 AM -
This is one of the situations that the Filter pipeline is designed to handle! You'll want to make a fairly small filter, quite possibly based on the auth filters we've already created for you in the Web Authentication Broker sample. That filter will, when it sees an outgoing request, will call into the web auth broker, get the right access token, and apply it to outgoing requests.
Best of all, your app logic can then focus on actually controlling the web service instead of fiddling with the details of OAuth or OAuth2.
The //build/ presentation talked about the overall filter architecture: //Build 2013 4-092
And, to see our overall HttpClient architecture, we have a nifty poster for download.
Network Developer Experience Team (Microsoft)
Tuesday, October 29, 2013 5:56 PM -
Thanks for your help ,i am able to retrieve the accessToken and refreshToken and i am trying to get user info following the google api documentation but i'm getting a 40 forbidden . I am hitting this url https://www.googleapis.com/oauth2/v1/userinfo?access_token=1/fFBGRNJru1FQd44AzqT3Zg ,what seems to be the problem ?
19karabo91
- Edited by 19karabo91 Friday, November 1, 2013 10:02 AM
Friday, November 1, 2013 9:35 AM