arrays - Twitter API sendSynchronousRequest -


i have error :"extrat argument error in call" when remove error attribute nothing fixed

  let verify = nsurl(string:     "https://api.twitter.com/1.1/account/verify_credentials.json")   var request = nsmutableurlrequest(url: verify!)   pftwitterutils.twitter()!.signrequest(request)   var response: nsurlresponse?   var error: nserror?   var data = nsurlconnection.sendsynchronousrequest(request,  returningresponse: &response, error: &error) 

    if pftwitterutils.islinkedwithuser(pfuser.currentuser()!) {      let screenname = pftwitterutils.twitter()?.screenname!      pfuser.currentuser()?.username=screenname!     pfuser.currentuser()?.saveeventually()   let url = nsurl(string: "https://api.twitter.com/1.1/users/show.json?screen_name=" + screenname!)     let request = nsurlrequest(url: url!, cachepolicy: .reloadignoringlocalandremotecachedata, timeoutinterval: 5.0)      let session = nsurlsession.sharedsession()      session.datataskwithrequest(request, completionhandler: {(data, response, error) in         print(data)         print(response)         print(error)      }).resume()        .....     } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -