POST direct_messages/new return "Could not authenticate you"


#1

println(reqWithJsonObjectReturn(“https://api.twitter.com/1.1/direct_messages/new.json”,
“my token”,
“token secret”,
(“user_id” -> “1341897109”)(“text” -> “hello%2C%20tworld.%20welcome%20to%201.1.”)
)

return error : code 32 error_msg : Could not authenticate you


#2

Are you able to make other API calls? What about other POSTs?


#3

Other POSTs can used and I tried add (“Content-Type”, “application / x-www-form-urlencoded;”) with(POST POST direct_messages / new) will not solve


#4

could u pls let me know the exact code for send the message to twitter from my web-site