私は初期のjsファイルを作成していますが、ビルドではクライアントがクライアントの秘密とクライアントIDを要求しているというエラーが出ています。私のアプリケーションを構築したときに、最初のAPIリクエストはすべてapiキーで処理されました。私はアップロードされた+トレーニング画像をclarifaiプレビューUIで見ることができるので、正常に完了したことがわかります。それ以来、すべての呼び出しは失敗しました。ドキュメントではapiキーだけが提供されているので、クライアントの秘密とIDをどこで取得するかはわかりません。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.
EDIT 2017年7月27日: Screenshot of error msg