Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ti.developers.meeting

3,971 views

Published on

10分(くらい)でtwitterクライアントが作れるtm_twitter_api.jsの紹介です。

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Ti.developers.meeting

  1. 1. 10minTwitter /mogya.com
  2. 2. WEB http://mogya.com/ Twitter: @mogya
  3. 3. http://oasis.mogya.com/
  4. 4. 10Twitter
  5. 5. 10Twitter
  6. 6. http://www.youtube.com/watch?v=FPEdTS3QeJQ2011/01
  7. 7. Twitter UI updateAndroid
  8. 8. Twitter UI updateAndroid( )
  9. 9. http://developer.appcelerator.com/blog/2010/07/twitter-oauth-implementation-for-titanium-mobile.htmlSpecial Thanks to
  10. 10. https://github.com/hatena/titanium-hatena-oauth-sampleSpecial Thanks to
  11. 11. https://github.com/mogya/tm_twitter_api
  12. 12. http://d.hatena.ne.jp/donayama/20110404/twitter_api_js_with_androidSpecial Thanks to
  13. 13. http://d.hatena.ne.jp/pirosikick/20110506/1304650912Special Thanks to
  14. 14. https://github.com/mogya/tm_twitter_api
  15. 15. Twitter UI updateAndroid( )
  16. 16. https://github.com/mogya/tm_twitter_api
  17. 17. Resources app.js lib twitter_api.js oauth_adapter.js oauth.js sha1.js
  18. 18. Ti.include("lib/twitter_api.js");var twitterApi = new TwitterApi({ consumerKey: YOUR CONSUMER KEY , consumerSecret: YOUR CONSUMER SECRET });
  19. 19. Ti.include("lib/twitter_api.js");var twitterApi = new TwitterApi({ consumerKey: YOUR CONSUMER KEY , consumerSecret: YOUR CONSUMER SECRET });
  20. 20. var twitterApi = new TwitterApi({ consumerKey: YOUR CONSUMER KEY , consumerSecret: YOUR CONSUMER SECRET });twitterApi.init();
  21. 21. var twitterApi = new TwitterApi({ consumerKey: YOUR CONSUMER KEY , consumerSecret: YOUR CONSUMER SECRET });twitterApi.init();
  22. 22. twitterApi.statuses_update({ onSuccess: function(responce){}, onError: function(error){}, parameters:{ status: ‘ Titanium ’ }});
  23. 23. twitterApi.statuses_update({ onSuccess: function(responce){}, onError: function(error){}, parameters:{ status: ‘ Titanium ’ }});
  24. 24. twitterApi.statuses_home_timeline({ onSuccess: function(tweets){ for (var c=0;c<tweets.length;c++){ var tweet = tweets[c].text; var user = tweets[c].user.screen_name; : }}); TL
  25. 25. KitchenSink (^◇^)
  26. 26. Twitter OAuth API( ) Androidmogya/tm_twitter_api https://github.com/mogya/tm_twitter_api
  27. 27. Twitter OAuth API( ) Androidmogya/tm_twitter_api https://github.com/mogya/tm_twitter_api

×