Abstract_Account_Api::get_token_authorization_header( $access_token = '' )
Returns the access token based authorization header to send requests to the API.
Return
(string|boolean) The authorization header, to be used in the headers section of a request to the API or false if not available.
Source
File: src/Tribe/Integrations/Abstract_Account_Api.php
public function get_token_authorization_header( $access_token = '' ) {
if ( $access_token ) {
return 'Bearer ' . $access_token;
}
if ( $this->access_token ) {
return 'Bearer ' . $this->access_token;
}
return false;
}
Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |