Abraham\TwitterOAuth\TwitterOAuth::encodeAppAuthorization PHP Method

encodeAppAuthorization() private method

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