swifter

New Twitter update authentication

房东的猫 提交于 2019-12-25 02:14:56
问题 I'm making a twitter app on iOS using their api. But they just recently upgraded everything dealing with authentication. Therefore breaking The Swifter library that I am using. My app was working fine before this update. In my apps.twitter.com In the setting section, the first callback url I have is http://MyTweeter ...It wants to me to add another callback, idk why/what so I just added http://google.com. In my app when I call the authentication function, it starts to authenticate and goes to

Post a tweet with a photo using the Swifter Framework / Library

人盡茶涼 提交于 2019-12-13 03:42:02
问题 I'm using Swifter Library to try to post a tweet with a photo but every time I try, i get an error "The operation couldn’t be completed. (SwifteriOS.SwifterError error 1.)" My code looks like var tweetMedia: [String: Any]? //I then set tweetMedia to a UIImageView from the UIImagePickerControllerOriginalImage let picForTwitterApi = tweetMedia![UIImagePickerControllerOriginalImage] as! UIImage let image = UIImagePNGRepresentation(picForTwitterApi) as Data? self.swifter?.postTweet(status: