Skip to content

Instantly share code, notes, and snippets.

View SalvaJ's full-sized avatar

SalvaJ€ SalvaJ

View GitHub Profile
@martinhbramwell
martinhbramwell / get_google_oauth2_creds.py
Last active December 28, 2015 19:58
Simple command line script to prepare a full set of Google API's OAuth2 credentials as Python variables.
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
'''
This script will attempt to open your web browser,
perform OAuth 2 authentication and print out your full set
of OAuth credentials in the form of Python variable declarations.
It depends on Google's Python library: oauth2client.
@s-shin
s-shin / oauth2.py
Created June 1, 2012 16:30
This module is a sample of the OAuth2 authentication by Python3
#!/usr/bin/env python3
"""This module is a sample of the OAuth2 authentication by Python3"""
__version__ = "0.1.0"
__author__ = "shin (shin.hateblo.jp)"
__copyright__ = "(C) 2012 shin"
__email__ = "[email protected]"
__license__ = "Apache License 2.0"
__status__ = "Prototype"
@ymotongpoo
ymotongpoo / requests-oauth2.py
Created February 25, 2012 07:53
Google API OAuth 2.0 Authorization Sample in Python
# -*- coding: utf-8 -*-
"""
This scripts reqire a third party module 'requests'.
You can get it from PyPI, i.e. you can install it using
easy_install or pip.
http://docs.python-requests.org/en/v0.10.4/
Original source code is written by shin1ogawa, which is in Java.