Skip to content

Commit

Permalink
ClarifaiGH-12 Use API key instead of ID/secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
rok-povsic committed Sep 11, 2017
1 parent 4dbd858 commit 0cd5003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static App get() {
@Override
public void onCreate() {
INSTANCE = this;
client = new ClarifaiBuilder(getString(R.string.clarifai_id), getString(R.string.clarifai_secret))
client = new ClarifaiBuilder(getString(R.string.clarifai_api_key))
// Optionally customize HTTP client via a custom OkHttp instance
.client(new OkHttpClient.Builder()
.readTimeout(30, TimeUnit.SECONDS) // Increase timeout for poor mobile networks
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<resources>
<string name="clarifai_id">TODO</string>
<string name="clarifai_secret">TODO</string>
<string name="clarifai_api_key">{YOUR API KEY}</string>

<string name="app_name">Clarifai v2 API Starter</string>

Expand Down

0 comments on commit 0cd5003

Please sign in to comment.