WPCF7_Service_OAuth2::get_http_authorization_header()
Метод класса: WPCF7_Service_OAuth2{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_http_authorization_header( $scheme );
- $scheme **
- -
По умолчанию: 'basic'
Код WPCF7_Service_OAuth2::get_http_authorization_header() WPCF7 Service OAuth2::get http authorization header CF7 5.7.5.1
protected function get_http_authorization_header( $scheme = 'basic' ) { $scheme = strtolower( trim( $scheme ) ); switch ( $scheme ) { case 'bearer': return sprintf( 'Bearer %s', $this->access_token ); case 'basic': default: return sprintf( 'Basic %s', base64_encode( $this->client_id . ':' . $this->client_secret ) ); } }