sophiataskova / SimpleTwitterClient

1 stars 0 forks source link

[Android Bootcamp] Twitter client part 2 #3

Open sophiataskova opened 9 years ago

sophiataskova commented 9 years ago

/cc @codepathreview @codepath Spent too much time on persisting with Sugar ORM and still working on the "see other users' profiles" user story.

nesquena commented 9 years ago

OK please ping back here again when all required user stories are complete (including user profiles which is a key one). Please make sure to submit that ASAP (latest by midnight).

nesquena commented 9 years ago

(Also check helpful hints tip #8, there's a few potential gotchas with viewing other user's profiles)

sophiataskova commented 9 years ago

Hi Nathan, sincere apologies for the delay! I was looking at the hints but none of them are related to what I'm stuck with. I'm having trouble figuring out what the request for another user's profile info should look like. I tried https://api.twitter.com/1.1/users/lookup.json with a screen_name parameter, and I'm getting a "No user matches for specified terms." message back from twitter

sophiataskova commented 9 years ago

Would you mind talking a little more about my issue above? I tried

public void userLookup(String screenName, AsyncHttpResponseHandler handler) { String apiUrl = "https://dev.twitter.com/rest/reference/get/users/show.json"; RequestParams params = new RequestParams(); params.put("screen_name", screenName); getClient().get(apiUrl, params, handler); }

where screenName is, for example, RichardDawkins, and I'm getting an error response {"errors":[{"message":"Sorry, that page does not exist","code":34}]}

nesquena commented 9 years ago

https://dev.twitter.com/rest/reference/get/users/show is the reference page

https://api.twitter.com/1.1/users/show.json is the actual endpoint as described on that page.

sophiataskova commented 9 years ago

Ah, nothing works when in a rush... Thank you for your answers, I've pushed up the last required user story and I'll be adding a gif and updating the readme as soon as I get un-ratelimited.

sophiataskova commented 9 years ago

Added gif to readme! Thank you so much for your patience.

codepathreview commented 9 years ago

:+1: nice work getting the required stories done. A few notes after checking out the code:

Here's a detailed Project 4 Feedback Guide here which covers the most common issues with this submitted project. Read through the feedback guide point-by-point to determine how you might be able to improve your submission.

This week (Week 5), we are going to cover the last major piece to the Android puzzle and that is using the hardware and SDK components such as the camera, photo gallery, location, maps, etc. After that, Week 6 and week 7 we will be covering a few important intermediate topics such as more about styling and animation as well as testing.

Following the bootcamp, we are going to have a public demo day to celebrate the progress you've all made with our next batch of Android students and multiple companies attending to see the group projects that you all have built. We are going to help however we can over the next few weeks to get the team project apps in shape for that.