-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Feature Request
I would like to request a feature that automatically shares uploaded media publicly and returns the public link for each uploaded file.
Use Case
This would be useful for scenarios where users need to:
- Automatically make uploaded photos accessible via public links
- Integrate uploaded media into external applications or websites
- Share media programmatically without manual intervention through the Google Photos web interface
Proposed Implementation
The feature could work in the following ways:
For Python Client:
from gpmc import Client
client = Client(auth_data=auth_data)
output = client.upload(target=path, share_publicly=True, return_public_link=True)
print(output)
# Expected output format:
# {
# "/absolute/path/to/media_file.jpg": {
# "media_key": "google_photos_media_key",
# "public_link": "https://photos.app.goo.gl/xxxxx"
# }
# }For CLI:
gpmc "/path/to/media_file.jpg" --share-public --auth_data "..."Additional Considerations
- This could be an optional flag/parameter (disabled by default) to maintain current behavior
- Could optionally support batch sharing for multiple files
Alternatives Considered
Currently, users would need to manually share each photo through the Google Photos web interface after upload, which is time-consuming for bulk uploads.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels