Abraham\TwitterOAuth\TwitterOAuth::encodeAppAuthorization PHP Méthode

encodeAppAuthorization() private méthode

Encode application authorization header with base64.
private encodeAppAuthorization ( Abraham\TwitterOAuth\Consumer $consumer ) : string
$consumer Abraham\TwitterOAuth\Consumer
Résultat string
    private function encodeAppAuthorization(Consumer $consumer)
    {
        $key = rawurlencode($consumer->key);
        $secret = rawurlencode($consumer->secret);
        return base64_encode($key . ':' . $secret);
    }