![]() GDrive.InsertQuery(file.Name, file.WebViewLink) Ĭonsole.WriteLine(files.Count + " records fetched.") ListRequest.Fields = "nextPageToken, files(webViewLink, name)" Var service = new DriveService(new BaseClientService.Initializer()įilesResource.ListRequest listRequest = () ![]() Console.WriteLine("Credential file saved to: " + credPath) New FileDataStore(credPath, true)).Result GoogleClientSecrets.Load(stream).Secrets, ) ĬredPath = Path.Combine(credPath, ".credentials/drive-dotnet-quickstart.json") Ĭredential = GoogleWebAuthorizationBroker.AuthorizeAsync( New FileStream("client_secret.json", FileMode.Open, FileAccess.Read)) GDriveTableAdapter gDrive = new gDriveTableAdapter() Static string ApplicationName = "Drive API. Gv1.DataSource = (i => i.Labels.Trashed = false) Įlse if (Request.QueryString = "access_denied")ĬlientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('Access denied.')", true) GoogleDriveFiles files = new JavaScriptSerializer().Deserialize(json) String json = GoogleConnect.Fetch("me", code) If (!string.IsNullOrEmpty(Request.QueryString)) GoogleConnect.ClientSecret = "oJxTZ2Bw9QfOlrc7KgxsEf9o" Protected void Page_Load(object sender, EventArgs e) Please find the code below: namespace GoogleDrive Can anyone please let me know what to change to get the full records display. I can able get the files from Google Drive using API thru the reference of this: Display (View) list of files from Google Drive using Google Drive API in ASP.Net with C# and VB.Net.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |