Google just announced support for a PHP runtime for App Engine. I have an app developed using the Java runtime which utilizes the native App Engine datastore. It currently f
reference: https://developers.google.com/datastore/docs/concepts/gql#using_literals_sample_code
setAssertionCredentials($credentials);
$postBody=json_encode(array('gqlQuery'=>array('allowLiteral'=>true, 'queryString'=>
"SELECT * FROM Guestbook WHERE __key__=key(Guestbook, 'default_guestbook')"
)));
$httpRequest=new Google_HttpRequest('datastore/v1beta2/datasets/'.APP_NAME.'/runQuery', 'POST', null, $postBody);
$head=array('content-type'=>'application/json; charset=UTF-8',
'content-length'=>Google_Utils::getStrLen($postBody)
);
$httpRequest->setRequestHeaders($head);
$httpRequest=Google_Client::$auth->sign($httpRequest);
$result=Google_REST::execute($httpRequest);
var_export($result);
?>
insertion code: How to insert a record using the Admin console Datastore Viewer using GQL