Skip to content

Commit bf1cbfb

Browse files
author
pocha
committed
mentioned that users can use GSON & jackson libraries for json parsing
1 parent 03e31bb commit bf1cbfb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

twitter-http-challenge/_fetching_tweets_with_http_get.html.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,6 @@ Edgar
100100

101101
3. Add a refresh menu item which upon click should make an HTTP GET call to get new array of tweets and append the new data to list. The refresh should simply call the */tweets* url & append the tweets to the list.
102102

103+
###Restrictions
104+
* You must use one of the natively available techniques to perform HTTP operations, like **HttpClient** or **HTTPUrlConnection**. External libraries are not supported.
105+
* For JSON parsing, you can use **GSON** & **Jackson** libraries only

twitter-http-challenge/_login_with_http_post.html.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ The API will provide you a token as a JSON response
5959
* Modify the app to skip showing the login screen when the token is already available in SharedPreference.
6060

6161
###Restrictions
62-
* You must make a POST call to **/login**
63-
* The JSON request object must contain "username" and "password" fields
6462
* You must use one of the natively available techniques to perform HTTP operations, like **HttpClient** or **HTTPUrlConnection**. External libraries are not supported.
63+
* For JSON parsing, you can use **GSON** & **Jackson** libraries only
6564
* The received token must be stored in a SharedPreference file named "codelearn_twitter"
6665

6766
Once you are done, run the app as **Android App Codelearn** & if you got the solution right, you will get a success popup that will take you the next level. All the best.

0 commit comments

Comments
 (0)