protected function getSmsc($number)
    {
        $adapter = $this->getAdapter();
        $adapter->setEndpoint(self::SMSC_ENDPOINT);
        $adapter->setParameters(array(
            'user'     => $this->config['user'],
            'password' => $this->config['password'],
            'msisdn'   => $number
        ));
        $response = $adapter->get();

        return $response->getBody();
    }
protected function getSmsc($number)
    {
        $adapter = $this->getAdapter();
        $adapter->setEndpoint(self::SMSC_ENDPOINT);
        $adapter->setParameters(array(
            'user'     => $this->config['user'],
            'password' => $this->config['password'],
            'msisdn'   => $number
        ));
        $response = $adapter->get();

        return $response->getBody();
    }
protected function getSmsc ( $ number ) { $ adapter = $ this -> getAdapter ( ) ; $ adapter -> setEndpoint ( self :: SMSC_ENDPOINT ) ; $ adapter -> setParameters ( array ( 'user' => $ this -> config [ 'user' ] , 'password' => $ this -> config [ 'password' ] , 'msisdn' => $ number ) ) ; $ response = $ adapter -> get ( ) ; return $ response -> getBody ( ) ; }
Get smsc for a given mobile number.

TODO: implement some sort of caching here.

@param  int    $number the mobilenumber with countrycode prefix, not zero-padded tho
@return string
Get smsc for a given mobile number .