有人可以帮我解决这个问题吗?
我正在使用 swift 3 开发一个应用程序,我正在尝试将 google translate api 集成到我的 iOS 应用程序中,但其余 api 响应以下错误:
["error": {
code = 403;
errors = (
{
domain = global;
message = "Requests from this ios client application <empty> are blocked.";
reason = forbidden;
}
);
message = "Requests from this ios client application <empty> are blocked.";
status = "PERMISSION_DENIED";
}]
最佳答案
你有没有关注: Implementing google translation api in swift 3 iOS ?
正如他提到的,您必须正确激活您的帐户并注册,因为它似乎不再是一个免费的 API 可以使用了。
关于ios - iOS 应用程序 swift 3 中的谷歌翻译 rest api 错误 403,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43921916/