Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9162005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:06:34+00:00 2026-06-17T14:06:34+00:00

we can share a file/folder using https://developers.google.com/drive/v2/reference/permissions/insert . But the response ( https://developers.google.com/drive/v2/reference/permissions#resource )

  • 0

we can share a file/folder using https://developers.google.com/drive/v2/reference/permissions/insert . But the response ( https://developers.google.com/drive/v2/reference/permissions#resource ) won’t contain the link to share the file/folder.

After sharing a file/folder, you can get the link to share the file/folder using https://developers.google.com/drive/v2/reference/files/get. So we need to send one more request to get the link. It will be useful if we get the link in the first request itself.

I just played with Google drive web interface and got the pattern of the link to share a file/folder as given below:

For files: https://docs.google.com/file/d/{file-id}/edit

For folders: https://docs.google.com/folder/d/{folder-id}/edit

It is working fine now.

Is it correct to get the shared file/folder? will it break in future?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:06:36+00:00Added an answer on June 17, 2026 at 2:06 pm

    The alternateLink of the File resource from drive.files.* methods should contain the link to view the file in Google Drive. This will be consistent, and the best way of finding the correct URL.

    Having said that, likely those URLs that you engineered will not change, but best to be safe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it ok to share the iOS development.provision file with others ? can this
I know you can share control easily with master page. But what if I
In my application user can share information with different apps using: shareIntent.putExtra(Intent.EXTRA_SUBJECT, Link from
I'm using Mobile Device Browser File ( http://mdbf.codeplex.com/ ) for my ASP.NET MVC 2
I'm trying to share a file using the something like intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); the file
I'm using SQLite so it's only a file, not a server, but here's the
I have been trying to get it to work using this thread but can't
I have content to be installed, but it's file and folder layout is determined
I downloaded git source from https://github.com/git/git as a zip file. I extracted it into
I'm following the installation steps: http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html , but can't install Phabricator successfully. Even I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.