Twitter Error Domain=HTTP Code=404 objective c
Error :
Request failed with error: Error Domain=HTTP Code=404 "The operation couldn’t be completed. (HTTP error 404.)"
Solution :
Verson1 of the API is deprecated now. This document may describe an outdated version of the API.
Please move as soon as possible to
Version1.1(https://dev.twitter.com/docs/api/1.1)
Go through this document.
https://dev.twitter.com/docs/api/1.1/post/direct_messages/new
Point to be noted
- Api should be in json format.
- Api version v1.1
- receiver and sender should follow each other.
Example Request
POST : https://api.twitter.com/1.1/direct_messages/new.json
POST Data : text=hello Rajneesh&screen_name=rajneesh071
POST Data : text=hello Rajneesh&screen_name=rajneesh071
Comments
Post a Comment