Created
August 6, 2016 05:20
-
-
Save niwatako/b798b4f9130496cee3fd6580b418e6e7 to your computer and use it in GitHub Desktop.
SLRequestは、APIのURLを渡してOSから取得したTwitterアカウントを指定すれば、リクエストを生成してくれる #CodePiece #realm_swift #realm_jp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let requestURL = NSURL(string: "https://api.twitter.com/1/statuses/home_timeline.json") | |
let request = SLRequest(forServiceType: SLServiceTypeTwitter, requestMethod: .GET, URL: requestURL, parameters: nil) | |
request.account = account |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment