Skip to main content

Google Data APIs for twisted

Project description

txgoogleapi
===========

This library allows accessing Google Data APIs in an asynchronous fashion
using the Twisted application framework.

Currently, very few APIs are actually implemented but adding APIs should be
rather trivial.


Implemented APIs
----------------

- Google URL shortener
- YouTube Data API v3
- Playlists
- PlaylistItems


Requesters
----------

Google APIs are usually accessed using either OAuth 2.0 authentication or
by adding an API key to the query string. txgoogleapi provides utility
classes for both these scenarios.

txgoogleapi.unauth_requester - Unauthenticated API access
txgoogleapi.api_key_requester - Authentication using an API key
txgoogleapi.oauth_requester - Authentication using OAuth 2.0


Usage
-----

from twisted.internet import defer
from twisted.internet.task import react
import txgoogleapi


requester = txgoogleapi.ApiKeyRequester(YOUR_API_KEY)
google = txgoogleapi.Google(requester)


@defer.inlineCallbacks
def main(reactor):
result = yield google.urlshortener.url.insert(body={
'longUrl': 'http://github.com',
})
print 'Short url:', result['id']

react(main)


Version 1.0.0 - Initial release
- Everything

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

txgoogleapi-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

txgoogleapi-0.0.1-py2.py3-none-any.whl (8.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file txgoogleapi-0.0.1.tar.gz.

File metadata

File hashes

Hashes for txgoogleapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93622fa47ba58428353f50ae97c01c9614f7db4a5ffa7c7ed2f954f981c0204a
MD5 4cb91708dd7ba04cb2f5b033cb856fb3
BLAKE2b-256 9ee7f4fe437fa1649a29078008dce026c8b85168169a4b5db78aeede3f5a5ba6

See more details on using hashes here.

File details

Details for the file txgoogleapi-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for txgoogleapi-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1efebd5fea77df11fa15b20bb2a076ddea52de44db234305267fd74fed30f2eb
MD5 92835525239b220c3ab3684add62c001
BLAKE2b-256 bc905b3da53f697a18904ab52f1ae6105b7f7f76c9a52e9878f1d73f9321a2f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page