public function generateAuthenticationToken($enterpriseId, $userId, $optParams = array())
  {
    $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
    $params = array_merge($params, $optParams);
    return $this->call('generateAuthenticationToken', array($params), "Google_Service_AndroidEnterprise_AuthenticationToken");
  }
public function generateAuthenticationToken($enterpriseId, $userId, $optParams = array())
  {
    $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
    $params = array_merge($params, $optParams);
    return $this->call('generateAuthenticationToken', array($params), "Google_Service_AndroidEnterprise_AuthenticationToken");
  }
public function generateAuthenticationToken ( $ enterpriseId , $ userId , $ optParams = array ( ) ) { $ params = array ( 'enterpriseId' => $ enterpriseId , 'userId' => $ userId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'generateAuthenticationToken' , array ( $ params ) , "Google_Service_AndroidEnterprise_AuthenticationToken" ) ; }
Generates an authentication token which the device policy client can use to
provision the given EMM-managed user account on a device. The generated token
is single-use and expires after a few minutes.

You can provision a maximum of 10 devices per user.

This call only works with EMM-managed accounts.
(users.generateAuthenticationToken)

@param string $enterpriseId The ID of the enterprise.
@param string $userId The ID of the user.
@param array $optParams Optional parameters.
@return Google_Service_AndroidEnterprise_AuthenticationToken
Generates an authentication token which the device policy client can use to provision the given EMM - managed user account on a device . The generated token is single - use and expires after a few minutes .