Skip to content

Commit

Permalink
add working code to create album
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitkumar committed Dec 14, 2016
1 parent 10fe415 commit 7e7bef0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions client_secret.json
@@ -0,0 +1 @@
{"installed":{"client_id":"35529048968-bh728ut7td9mtqeajidvb23g1hqcbd6e.apps.googleusercontent.com","project_id":"inner-bridge-126518","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"VugrnF_E6Bb5cQbQeq8aSW_5","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
Binary file added image.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/googlecl/discovery/__init__.py
Expand Up @@ -56,7 +56,6 @@ def __init__(self, email):
self.dataManager.local_apis, self.dataManager.base_url)

def run(self, argv):
import ipdb; ipdb.set_trace()

try:
"""Primary function for the program
Expand Down
5 changes: 2 additions & 3 deletions src/googlecl/picasa/__init__.py
Expand Up @@ -194,9 +194,8 @@ def _run_create(client, options, args):
# Paths to media might be in options.src, args, both, or neither.
# But both are guaranteed to be lists.
media_list = options.src + args

album = client.create_album(title=options.title, summary=options.summary,
access=options.access, date=options.date)
album = client.InsertAlbum(title=options.title, summary=options.summary,
access=options.access, timestamp=options.date)
if media_list:
client.InsertMediaList(album, media_list=media_list,
tags=options.tags)
Expand Down

0 comments on commit 7e7bef0

Please sign in to comment.