The gsspread
that I know of doesn’t have the login
method!
I guess what you are looking for is authorize
.
You would ideally do something like this:
import gspread
gc = gspread.authorize(credentials) # check link below on how to obtain the credentials
The procedure on how to obtain the credentials
is very well documented by gsspread here – http://gspread.readthedocs.io/en/latest/oauth2.html