Skip to content

Commit

Permalink
added deprecation warning #210
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed Apr 19, 2015
1 parent 1d1c790 commit b4878b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gspread/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""
import re
import warnings

from xml.etree import ElementTree

Expand Down Expand Up @@ -63,6 +64,17 @@ def _add_xml_header(self, data):
return "<?xml version='1.0' encoding='UTF-8'?>%s" % data.decode()

def login(self):
warnings.warn("""
ClientLogin is deprecated:
https://developers.google.com/identity/protocols/AuthForInstalledApps?csw=1
Authorization with email and password will stop working on April 20, 2015.
Please use oAuth2 authorization instead:
http://gspread.readthedocs.org/en/latest/oauth2.html
""", Warning)

"""Authorize client using ClientLogin protocol.
The credentials provided in `auth` parameter to class' constructor will be used.
Expand Down

0 comments on commit b4878b2

Please sign in to comment.