Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

As PHP version 5.5 is no longer supported by the community, we strongly recommend new apps use the PHP 7+ runtime.

\google\appengine\runtime\ApiProxy

Methods

makeSyncCall

STATIC   

makeSyncCall(string $package, string $call_name, string $request, string $response, double $deadline = null)

Makes a synchronous RPC call.

Parameters

Name Description

$package

string

Package to call

$call_name

string

Specific RPC call to make

$request

string

Request proto, serialised to string

$response

string

Response proto string to populate

$deadline

double

Optional deadline for the RPC call

setApiProxy

STATIC   

setApiProxy(resource $apiProxy)

Set the API Proxy instance used to make the RPC call. Allows for mocking in tests.

Parameters

Name Description

$apiProxy

resource

API Proxy instance to use