public function account($mustInit = true)
    {
        if ($mustInit) $this->_init();

        $params = array(
            'api' => $this->api_key,
        );

        $query = http_build_query($params);

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, Config::get('semaphore::url.sms.account') . '?' . $query);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        curl_close($ch);

        return $response;
    }
public function account($mustInit = true)
    {
        if ($mustInit) $this->_init();

        $params = array(
            'api' => $this->api_key,
        );

        $query = http_build_query($params);

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, Config::get('semaphore::url.sms.account') . '?' . $query);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $response = curl_exec($ch);
        curl_close($ch);

        return $response;
    }
public function account ( $ mustInit = true ) { if ( $ mustInit ) $ this -> _init ( ) ; $ params = array ( 'api' => $ this -> api_key , ) ; $ query = http_build_query ( $ params ) ; $ ch = curl_init ( ) ; curl_setopt ( $ ch , CURLOPT_URL , Config :: get ( 'semaphore::url.sms.account' ) . '?' . $ query ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , true ) ; $ response = curl_exec ( $ ch ) ; curl_close ( $ ch ) ; return $ response ; }
Check account balance and status

@return object   Semaphore response
Check account balance and status