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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -