You must Sign In to post a response.
  • Category: .NET

    How to access shared google drive contents in


    How can we access google drive shared folder contents in, need this without authentication, since it is a shared folder.

    Need something like hardcode the shared urls and access the contents.

    Is there any way for this?


  • #764130
    Hai Ginnas,
    Google provides API and SDK to connect and then access the information from the drives. So you can make use of the SDK and then connect with the account to access the details.
    Below are the few links for the code snippets which can be used:

    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #764144
    You can get API to access the google drive.

    You can install the API using the PM. Try the following command to install it.

    PM> Install-Package Google.Apis.Drive.v2

    Use the following namespaces

    using Google.Apis.Drive.v2;
    using Google.Apis.Auth.OAuth2;
    using Google.Apis.Util.Store;
    using Google.Apis.Services;
    using Google.Apis.Drive.v2.Data;


    string[] scopes = new string[] { DriveService.Scope.Drive,
    var usedid = "your user id"
    var password = "your password";
    var Authorize = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = usedid ,
    ClientSecret = password},
    new FileDataStore("Your Data source")).Result;

    By using the "DriveService" you have handle your google drive.

    By Nathan
    Direction is important than speed

Sign In to post your comments