Note that there are some explanatory texts on larger screens.

plurals
  1. POgoogle-bigquery how to get datasetlist with https get?
    primarykey
    data
    text
    <p>I'm trying to get dataset list from bigquery webserver with https get</p> <p>following the documentation here: <a href="https://developers.google.com/bigquery/docs/reference/v2/datasets/list" rel="nofollow">https://developers.google.com/bigquery/docs/reference/v2/datasets/list</a></p> <p>i'm using slightly modified code from:<br> <a href="http://code.google.com/p/qt-google-bigquery/source/browse/manager_bigquery.cpp" rel="nofollow">http://code.google.com/p/qt-google-bigquery/source/browse/manager_bigquery.cpp</a></p> <pre><code>getDatasetsList(QString strProjectID) { QString url = QString("https://www.googleapis.com/bigquery/v2/projects/%1/datasets?key=%2").arg(str_ProjectID).arg(this-&gt;api_key); //Also tried without ?key= part QNetworkRequest request; request.setUrl( QUrl(url) ); //this also urlencodes request.setRawHeader("Content-Type", "application/json"); request.setRawHeader("Authorization", (QString("Bearer %1").arg(m_Access_Token)).toLatin1()); //here i post the request as a http get asynchronously } </code></pre> <p>i get back this error message:</p> <pre><code>Reply = "{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Required parameter is missing" } ], "code": 400, "message": "Required parameter is missing" } } </code></pre> <p>Note:<br> I managed to run a query and get the results, so my access token seems to be valid, what am i doing wrong here?</p> <p>SOLVED</p> <p>Ah, actually the problem was in my coding, not the request, i posted it as a http post, not a get.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload