{"id":20455,"date":"2014-06-15T13:19:30","date_gmt":"2014-06-15T04:19:30","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=20455"},"modified":"2014-06-15T13:19:30","modified_gmt":"2014-06-15T04:19:30","slug":"swifter","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/swifter\/","title":{"rendered":"Swift\u3067\u66f8\u304b\u308c\u305fTwitter\u30e9\u30a4\u30d6\u30e9\u30ea\u300cSwifter\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/06\/blogNewImage104.png\" alt=\"NewImage\" title=\"NewImage.png\" border=\"0\" width=\"546\" height=\"165\" \/><\/p>\n<p>Apple\u306e\u65b0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cSwift\u300d\u3067\u66f8\u304b\u308c\u305fTwitter\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300c<a href=\"https:\/\/github.com\/mattdonnelly\/Swifter\">Swifter<\/a>\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3002<\/p>\n<p>Swifter\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001Xcode 6\u304c\u5fc5\u8981\u3067\u3001\u81ea\u5206\u306eSwift\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u300cSwifteriOS\u300d(iOS\u306e\u5834\u5408)\u304b\u3001\u300cSwifterMac\u300d(Mac\u306e\u5834\u5408)\u3092\u30c9\u30e9\u30c3\u30b0\u30fb\u30a2\u30f3\u30c9\u30fb\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067OK\u3002<br \/>\n<!--more--><\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>\u57fa\u672c\u7684\u306a\u4f7f\u7528\u6cd5\u306f\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305fTwitter\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u540c\u3058\u3088\u3046\u306a\u611f\u3058\u306a\u306e\u3067\u99b4\u67d3\u307f\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre>\nlet swifter = Swifter(account: twitterAccount)\n<\/pre>\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u521d\u671f\u5316\u3002<\/p>\n<pre>\nlet swifter = Swifter(consumerKey: \"\", consumerSecret: \"\")\n<\/pre>\n<p>OAuth\u306e\u521d\u671f\u5316\u3002<\/p>\n<pre>\nswifter.authorizeWithCallbackURL(callbackURL, success: {\n    accessToken, response in\n\n    \/\/ ...\n\n    }, \n    failure: {\n\n    \/\/ ...\n\n    })\n<\/pre>\n<p>OAuth\u306e\u8a8d\u8a3c\u3002<\/p>\n<pre>\nswifter.getStatusesHomeTimelineWithCount(20, sinceID: nil, maxID: nil, trimUser: true, contributorDetails: false, includeEntities: true, success: {\n    statuses, response in\n\n    \/\/ ...\n\n    }, failure: {\n\n    \/\/ ...\n\n    })\n<\/pre>\n<p>Home\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306e\u53d6\u5f97\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u4ed6\u306b\u300cSwifterDemoMac\u300d\u3001\u300cSwifterDemoiOS\u300d\u3068\u3044\u3046\u30c7\u30e2\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002\u3053\u3093\u306a\u611f\u3058\u3067\u3069\u3093\u3069\u3093Swift\u3067\u66f8\u304b\u308c\u305f\u5b9f\u7528\u6027\u306e\u9ad8\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u516c\u958b\u3055\u308c\u308b\u3068\u306a\u308b\u3068\u3001\u76f8\u5f53\u666e\u53ca\u901f\u5ea6\u306f\u901f\u304f\u306a\u308a\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple\u306e\u65b0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cSwift\u300d\u3067\u66f8\u304b\u308c\u305fTwitter\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cSwifter\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3002 Swifter\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001Xcode 6\u304c\u5fc5\u8981\u3067\u3001\u81ea\u5206\u306eSwi [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":20454,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[46,4,75],"tags":[3303,3299,2420,77],"class_list":["post-20455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios","category-mac","category-software","tag-ios","tag-mac","tag-swift","tag-twitter"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/20455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=20455"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/20455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/20454"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=20455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=20455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=20455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}