I have a case where i need to display user’s google drive data on my own website. how to do this. i have setup Google’s Example DriRdit.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first step is authentication. You can use Google’s own example detailed here which runs you through the entire procedure of doing that.
Once you have authentication complete, you can do the following:
Register for an API key here.
You can now send an HTTP GET request using cURL or file_get_contents() in PHP to the URL
https://developers.google.com/drive/v2/files/list. An AJAX request to the page wouldn’t work as the page wouldn’t be a part of your domain.You need to send your requests with the following parameters.
The final request might look like
Link: Documentation