private static function getResource($message)
    {
        $url = static::getDownloadUrl($message);

        $content = vbot('http')->get($url, static::getDownloadOption($message));

        if (!$content) {
            vbot('console')->log('download file failed.', Console::WARNING);
        } else {
            return $content;
        }
    }
private static function getResource($message)
    {
        $url = static::getDownloadUrl($message);

        $content = vbot('http')->get($url, static::getDownloadOption($message));

        if (!$content) {
            vbot('console')->log('download file failed.', Console::WARNING);
        } else {
            return $content;
        }
    }
private static function getResource ( $ message ) { $ url = static :: getDownloadUrl ( $ message ) ; $ content = vbot ( 'http' ) -> get ( $ url , static :: getDownloadOption ( $ message ) ) ; if ( ! $ content ) { vbot ( 'console' ) -> log ( 'download file failed.' , Console :: WARNING ) ; } else { return $ content ; } }
get a resource through api.

@param $message

@return mixed
get a resource through api .