Skip to content

Commit 08466f6

Browse files
committed
Merge branch 'master' of github.com:wordnik/swagger-codegen
2 parents 880d149 + 685fc70 commit 08466f6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

samples/client/wordnik-api/android/README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is a full client library for the Wordnik API. It requires that you have a
55
can get one for free at http://developer.wordnik.com.
66

77
This library is built using the Wordnik [Swagger](http://swagger.wordnik.com) client library generator. You
8-
can re-generate this library by running ./bin/java-wordnik-api.sh from the swagger-codegen project
8+
can re-generate this library by running ./bin/android-java-wordnik-api.sh from the swagger-codegen project
99

1010
## Usage
1111
You can use maven central to add this library to your current project:
@@ -51,22 +51,17 @@ class WordOfTheDayAsyncTask extends AsyncTask<Void, Void, WordOfTheDay> {
5151
WordsApi api = new WordsApi();
5252
api.addHeader("api_key", "YOUR_API_KEY");
5353
try {
54-
WordOfTheDay w = api.getWordOfTheDay("2014-02-19");
55-
if(w != null)
56-
Log.d("FullscreenActivity", w.toString());
57-
else
58-
Log.d("FullscreenActivity", "nothing");
59-
return w;
54+
return api.getWordOfTheDay("2014-02-19");
6055
}
6156
catch (Exception e) {
62-
Log.d("FullscreenActivity", e.getMessage());
57+
Log.d("WordOfTheDayAsyncTask", e.getMessage());
6358
return null;
6459
}
6560
}
6661

6762
@Override
6863
protected void onPostExecute(WordOfTheDay d) {
69-
activity.setWordOfTheDay(d);
64+
Log.d("WordOfTheDayAsyncTask", d.toString());
7065
}
7166
}
7267
```
@@ -81,4 +76,4 @@ new WordOfTheDayAsyncTask().execute();
8176
This project was built with the following minimum requirements:
8277

8378
* Maven 3.0
84-
* Java JDK 6
79+
* Java JDK 6

0 commit comments

Comments
 (0)