Made the examples to the whole oAuth dance.
This required making a custom class extending the OAuthAccessTokenResponse. This custom class uses JSONUtils to parse json object response from canvas.