 //  Twift
 //
 //  Created by 135yshr on 2014/06/04.
-//  Copyright (c) 2014年 135yshr. All rights reserved.
+//  Copyright (c) 2014 135yshr. All rights reserved.
 //
 
 import UIKit

    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        let accountStore = ACAccountStore()
        let twitterAccountType = accountStore.accountTypeWithAccountTypeIdentifier(ACAccountTypeIdentifierTwitter)
        let handler: ACAccountStoreRequestAccessCompletionHandler = {granted, error in

            }

            let twitterAccounts = accountStore.accountsWithAccountType(twitterAccountType)
            if(twitterAccounts.count > 0){
                let account = twitterAccounts[0] as ACAccount
                let url = NSURL.URLWithString("https://api.twitter.com/1/statuses/home_timeline.json")
