lib/Freebird/Services/freebird/RequestHandler.php
private function encodeBearer ($consumer_key, $consumer_secret){

        // Create Bearer Token as per Twitter recomends at 
        // https://dev.twitter.com/docs/auth/application-only-auth
        $consumer_key = rawurlencode($consumer_key);
        $consumer_secret = rawurlencode($consumer_secret);
        return base64_encode($consumer_key . ':' . $consumer_secret);

    }
private function encodeBearer ($consumer_key, $consumer_secret){

        // Create Bearer Token as per Twitter recomends at 
        // https://dev.twitter.com/docs/auth/application-only-auth
        $consumer_key = rawurlencode($consumer_key);
        $consumer_secret = rawurlencode($consumer_secret);
        return base64_encode($consumer_key . ':' . $consumer_secret);

    }
Encodes the Bearer according to twitter's standards
@param  [string] $consumer_key    Your Twitter Application Consumer Key
@param  [string] $consumer_secret Your Twitter Application Consumer Secret Key
@return [string]                  Your encoded Twitter Bearer token credentials