Quesiton on Twitter Kit



[TwitterKit] uploadMedia:contentType:completion: Invalid parameter not satisfying: (media && contentType)

iOS App Cards Don't Work

I’ve moved your post to a new thread since it seemed unrelated based on the body of your post. It’s unclear to me what help you’re looking for - can you explain a bit more?


@ganesh.eeshana are you able to ask your question more clearly, perhaps with a code sample? Thank you.



I am using below APIS link to send direct message(Private Message) in iOS
App but getting bellow error message

URL I am getting issue


Error :

1. Twitter response, HTTP response: 401

2 . Printing description of error:

Error Domain=NSURLErrorDomain Code=-1012 “The operation couldn’t be
completed. (NSURLErrorDomain error -1012.)” UserInfo=0x1771fa60
direct_messages/new.json?, NSUnderlyingError=0x18b5a470 “The operation
couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)”}

Please give me proper solution to send message to another person(Private
message not twit) throw iOS app.