我正在将Fedex API与codeigniter集成在一起。我从联邦快递网站下载了测试代码和WSDL文件。集成时,出现以下错误:
// Body: {"email": "example@email.com", "pass": "passw0rd"}
Future<dynamic> post(String url, var body) async {
var response = await http.post(url, body: body);
final String res = response.body;
return res;
}
// That's not the full code. I removed some lines because they are useless for this thread.
// Most of them are only some debug outputs or conditional statements
我得到这个回复:
PHP_Common initialized
stdClass Object
(
[HighestSeverity] => ERROR
[Notifications] => Array
(
[0] => stdClass Object
(
[Severity] => ERROR
[Source] => prof
[Code] => 1000
[Message] => Authentication Failed
)
)
[Version] => stdClass Object
(
[ServiceId] => ship
[Major] => 23
[Intermediate] => 0
[Minor] => 0
)
)
The transaction returned an Error.
Severity: ERROR
Source: prof
Code: 1000
Message: Authentication Failed