I was getting this same error for the last few weeks. My information was all correct.
My solution: I have a deicated server and I updated PHP and rebuilt Apache. I can’t tell you what I might have checked (it does require Curl support apparently), but after this, it would be able to authenticate.
HOWEVER, even though it authenticates now, it still isn’t posting anything.