Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在webapp上使用dart discoveryapis_生成器?_Dart_Google Cloud Endpoints - Fatal编程技术网

在webapp上使用dart discoveryapis_生成器?

在webapp上使用dart discoveryapis_生成器?,dart,google-cloud-endpoints,Dart,Google Cloud Endpoints,无法使用由生成的模型文件 它要求使用http.client,但它来自,我正在尝试在web应用程序中使用它 static YoupipeApi api = new YoupipeApi(new http.Client()); //cant work on webapp 调用tokenLoaded回调失败:不支持的操作:此平台不支持IOClient 那么,discoveryapis_生成器仅适用于本机dart客户端? 我做错什么了吗 ()http包还包含一个在浏览器中运行的客户端。只需将导入更改为

无法使用由生成的模型文件

它要求使用http.client,但它来自,我正在尝试在web应用程序中使用它

static YoupipeApi api = new YoupipeApi(new http.Client()); //cant work on webapp
调用tokenLoaded回调失败:不支持的操作:此平台不支持IOClient

那么,discoveryapis_生成器仅适用于本机dart客户端? 我做错什么了吗


()

http包还包含一个在浏览器中运行的客户端。只需将导入更改为导入文件
包:http/browser\u client.dart取而代之