Skip to content

igrishaev/googl-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Sample usage

import googl

client = googl.Googl("API_key")

result = client.shorten("http://code.google.com/p/python-googl-client/")
print result
>>> {
    u'kind': u'urlshortener#url',
    u'id': u'http://goo.gl/bUnil',
    u'longUrl': u'http://code.google.com/p/python-googl-client/'
}

print client.expand(result["id"])
>>> {
    u'status': u'OK',
    u'kind': u'urlshortener#url',
    u'id': u'http://goo.gl/WubiJ',
    u'longUrl': u'http://code.google.com/p/python-googl-client/'
}

ClientLogin Auth

client_login = googl.get_client_login("login", "pass")
client = googl.Googl("API_key", client_login=client_login)

About

Goo.gl library for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published