title: Google Bigquery json API, pageToken has no effect
body: <p>I'm trying to implement the JSON api (v2) of bigquery. In my code I get the same behaviour as on the <a href="https://developers.google.com/bigquery/docs/reference/v2/tabledata/list" rel="nofollow noreferrer">documentation page for tabledata-list</a></p>
  <p>My table size is about 11.000 rows. In the documentation page I fill in the following parameters:</p>
  <ul>
  <li>ProjectId = X</li>
  <li>DatasetId = Y</li>
  <li>TableId = Z</li>
  <li>MaxResults = 10000 #I want to paginate my results</li>
  </ul>
  <p>This returns 10.000 rows and a pageToken. So I do the same request and now I set the page token so that I get the next page of results.</p>
  <p>And that returns the same 10.000 rows as before. I expected this to do pagination as described on <a href="https://developers.google.com/bigquery/docs/data#paging" rel="nofollow noreferrer">this page</a>:</p>
  <blockquote>
  <p>All collection.list methods return paginated results under certain circumstances. The number of results per page is controlled by the maxResults property</p>
  <p>A page is a subset of the total number of rows. If your results are more than one page of data, the result data will have a nextPageToken property. To retrieve the next page of results, make another list call and include the token value as a URL parameter named pageToken.</p>
  </blockquote>
  <p>Where do I go wrong?</p>
  <p><strong>EDIT:</strong></p>
  <p>My colleague pointed out to me that on the other documentation pages the result contains a <code>nextPageToken</code> except the response contains a <code>pageToken</code>. The difference being that where <code>pageToken</code> refers to the current page, the <code>nextPageToken</code> refers to the next page.</p>
  <p>However the documentation states it should return a <code>nextPageToken</code> (except when there is no more data). But <code>len(table) &gt; len(result)</code></p>