thanks
Roi
The error:
{
"error": {
"code": -301,
"message": "This device is not authorized to use this database",
"data": [
{
"domain": "global",
"reason": "unauthorized",
"message": "This device is not authorized to use this database"
}
]
},
"jsonrpc": "2.0",
"id": "any_string"
}
My code:
curl -XPOST https://www.googleapis.com/rpc -H "Content-Type: application/json" --data '{
"jsonrpc": "2.0",
"method": "spectrum.paws.getSpectrum",
"apiVersion": "v1explorer",
"params": {
"type": "AVAIL_SPECTRUM_REQ",
"version": "1.0",
"deviceDesc": { "serialNumber": "1234", "fccId": "OPS13", "fccTvbdDeviceType": "MODE_1" },
"location": { "point": { "center": {"latitude": 42.0986, "longitude": -75.9183} } },
"antenna": { "height": 1.0, "heightType": "AGL" },
"owner": { "owner": { } },
"capabilities": { "frequencyRanges": [{ "startHz": 750000000, "stopHz": 850000000 }, { "startHz": 400000000, "stopHz": 700000000 }] },
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
},
"id": "any_string"
}'