Is this still the case?我们可以不用Flutter查询FileMaker接口吗?
我收到了一个400错误。
下面是我的代码:
final recordResponse = await http.post(
findUrl,
headers: {
HttpHeaders.contentTypeHeader: 'application/json',
HttpHeaders.authorizationHeader : 'Bearer ' + token
},
body: json.encode({"query":[{"firstname": "=Yuichi"}]}),
);
发布于 2020-07-22 01:06:53
解决了。
我能够使用Dio访问FileMaker布局中的一个用户。
Dio dio = Dio();
dio.options.headers['content-Type'] = 'application/json';
dio.options.headers["authorization"] = "Bearer ${token}";
Response recordResponse;
recordResponse = await dio.post(
findUrl,
options: Options(followRedirects: false, validateStatus: (status)
{return status < 500;}),
data: { "query":
[{
"username": "=Jake",
"password": "=password"
}]
}
);
https://stackoverflow.com/questions/62837827
复制相似问题