最佳答案
我正在尝试使用 flutter 插件 HTTP 发出一个 HTTP POST 请求,但是我得到了一个错误的标题。 有人知道原因吗,因为在我的其他应用程序中,这个工作得非常好?
await http.post(Uri.encodeFull("https://api.instagram.com/oauth/access_token"), body: {
"client_id": clientID,
"redirect_uri": redirectUri,
"client_secret": appSecret,
"code": authorizationCode,
"grant_type": "authorization_code"
});