creating a worksheet using gspread
<p>I am new to python. I was just trying to create a google worksheet using gspread. I read about using google api's from <a href="http://gspread.readthedocs.io/en/latest/oauth2.html" rel="nofollow">here</a>. I downloaded credentials from <a href="https://console.developers.google.com/apis/credentials?project=spreadsheet-1995" rel="nofollow">Google Developers Console</a> which is a file in json format. Then I used this code</p>

<pre><code>import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
credentials =     ServiceAccountCredentials.from_json_keyfile_name('spreadsheet1995.json', scope)
gc = gspread.authorize(credentials)
worksheet = gc.add_worksheet(title="A worksheet", rows="100", cols="20")
</code></pre>

<p>But it throws an error <code>'Client' object has no attribute 'add_worksheet'</code> although I read documentation which included this attribute. Here is the <a href="http://gspread.readthedocs.io/en/latest/oauth2.html" rel="nofollow">link</a> which I followed. Please help me sort out this problem.</p>