Week5 Examples: Web Clients
- Tweeter Client: Key point, API for
OAuth.
- Credit: this example is based on the two blog postings by Sudhindra
Kovalam:
- Twitter API:
- https://dev.twitter.com/
- Registration: Click on "Create an app"
- Make sure you allow: 3rd party reading your Twit and
- Make sure you allow: App allows R/W access level to user account
- Learning OAuth from Tweeter API
- This example uses Hammock.Windows.Phone API for OAuth support.
Compare to our previous FB application, where we sits on customized FB
API. This difference means:
- With customized API: FB URI functions are embedded and hidden from
our c# code. We make C# functions calls to access FB URI-API's
- In this case, Hammock helped us with OAuth, and generic REST calls
(refer to Posting Twitter)
- Twitter for any users are generic accessible by all!
- Challenge: Up-to 0.2 GPA points!! Extra credit
- Example of OAuth-ed connection to a web-service from WP7: e.g,
- Google (watch out this make be tricky!): get a list of gmail items from inbox
- yahoo (no idea how difficult/simple)
- yelp netflix,
- whatever, ask me
- 0.1 GPA per each example. Your example MUST
- contain not more than 1 xaml page
- contain no more than 2 .cs source code
- support authorization of any registered user for the web-service (e.g. gmail
user to login to gmail)
- allow user to post of some information to their account (e.g., new gmail item),
and listing of items that show the update (reading back the previous 10 emails)
- Talk to me before you begin. First-come-first serve. Some of the services can be
trivial
- Windows Live service: 0.1 GPA for 3 separate examples:
- Hotmail example, + Skydrive Example + Calandar