I am trying to make a rest api call for google big query from the command line. This is the POST request I have, but after I enter the content in the command line, I do not get any errors or results.
Could anyone please provide some comments?
POST https://www.googleapis.com/bigquery/v2/projects/projname/queries
Please enter content (application/x-www-form-urlencoded) to be POSTed:
{
"kind": "bigquery#queryRequest",
"query": "SELECT count(*) As Count FROM [projname:datasetname.tablename]",
"maxResults": unsigned integer,
"defaultDataset": {
"datasetId": datasetname,
"projectId": projname
},
"timeoutMs": 1000000,
"dryRun": boolean,
"preserveNulls": boolean,
"useQueryCache": boolean,
"useLegacySql": boolean,
"parameterMode": string,
"queryParameters": [
{
"name": string,
"parameterType": {
"type": string,
"arrayType": (QueryParameterType),
"structTypes": [
{
"name": string,
"type": (QueryParameterType),
"description": string
}
]
},
"parameterValue": {
"value": string,
"arrayValues": [
(QueryParameterValue)
],
"structValues": {
(key): (QueryParameterValue)
}
}
}
]
}