我设置了我的初始js文件,但是在构建中我得到一个错误,客户端现在需要我的客户端密钥和客户端ID ..奇怪的是,当我第一次构建我的应用程序所有初始的API请求只通过API密钥。我可以在clarifai预览用户界面上看到我上传的+培训图片,因此我知道他们已成功完成。然而,自那以后,每次通话都失败了不知道我从哪里获得客户端秘密和身份证,因为文档只给我提供了api密钥。Clarifai客户端请求客户端密码和ID
// Require the client
const config = require('../config/config');
const Clarifai = require('../../node_modules/clarifai/src');
// initialize with your api key. This will also work in your browser via http://browserify.org/
const app = new Clarifai.App({
apiKey: config['CLARAFAI_API_KEY']
});
由于在网站上说...
After creating your API Key, you are ready to make API calls. If you are using a client, authentication will be handled for you. If you are using the REST API, you will need to add the Authorization header as described in the cURL example.
编辑2017年7月27日: Screenshot of error msg