gpgs.getServerAuthCode()

Type String
Return value none
Revision 2017.3060
Keywords Google Play Games Services, game network, gpgs, getServerAuthCode
See also gpgs.*

Overview

Requests a special authentication code for a custom server that uses Google's OAuth client API.

Gotchas

On Android and iOS, the listener carries different values because the server authentication process differs between each platform.

Syntax

gpgs.getServerAuthCode( params )
params (required)

Table. Contains parameters for the call — see the next section for details.

Parameter Reference

The params table includes parameters for the call.

serverId (required)

String. Custom server's OAuth client ID.

listener (optional)

Listener. Listener function which receives a getServerAuthCode event.