Authorization Property

OAuth 2.0 Authorization Token.

Object Oriented Interface

public function getAuthorization();
public function setAuthorization($value);

Procedural Interface

cloudmail_gmail_get($res, 2 );
cloudmail_gmail_set($res, 2, $value );

Default Value



This class supports authentication via OAuth 2.0. First, perform OAuth authentication using the OAuth class or a separate process. Once complete you should have an authorization string which looks like:

Bearer ya29.AHES6ZSZEJzATdZYjeihDn5W-VrXSsxEZu5p0pclxGdKKQ
Assign this value to the Authorization property before attempting any operations. Consult the documentation for the service for more information about supported scope values and more details on OAuth authentication.

Data Type


Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Mail 2020 PHP Edition - Version 20.0 [Build 7718]