Pibooth plugin for google gallery upload.
Project description
pibooth-google-photo is a plugin for the pibooth application.
This plugin adds the photo upload to a google photo gallery. It requires an internet connection to work
Install
$ pip3 install pibooth-google-photo
Obtaining a Google Photos API key
Obtain a Google Photos API key (Client ID and Client Secret) by following the instructions on Getting started with Google Photos REST APIs
NOTE When selecting your application type in Step 4 of “Request an OAuth 2.0 client ID”, please select “Other”. There’s also no need to carry out step 5 in that section.
Configuration
This is the extra configuration options that can be added in the pibooth configuration):
[GOOGLE]
# The name of album on gallery
album_name = Pibooth
# The client_id.json file download from google API
client_id_file = path/to/client_id.json
Note
At first connection allow application to use google photo with open browser windows
client_id.json is like this
{
"installed":
{
"client_id":"8723982792-sdjfhdkjhvfkd76.apps.googleusercontent.com",
"client_secret":"HJAHZhjhi_HJI789798giEdPIbJ",
"auth_uri":"https://accounts.google.com/o/oauth2/auth",
"token_uri":"https://www.googleapis.com/oauth2/v3/token",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pibooth_google_photo-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1738fc46c8681ffbfac8d13a9c86c277dc10198fb735c3d634030af96d24b4df |
|
MD5 | 1a88fa7d8c06edb4cc0fe525f7e93c3b |
|
BLAKE2b-256 | ac65ce5d8a403690df32de221aac4aa4fa23717ce9020448f0e27da001a43918 |