New Direct Message .xml request returns error 34 "Sorry, that page does not exist"


#1

Sending a DM via https://api.twitter.com/1.1/direct_messages/new.xml returns …

Http: 404
<error code="34">Sorry, that page does not exist</error>

Messages sent via https://api.twitter.com/1.1/direct_messages/new.json function properly.

We noticed this error last week. Prior to the error we used https://api.twitter.com/direct_messages/new.xml which began to error assuming due to the api being updated. When updating to the 1.1 api we found that the xml request was not supported.

Is this a bug? Or will all requests lose support for a xml response?


#2

Hi there,

Yes, API v1.1 is JSON-only. XML is not supported at all in API v1.1.


#3

$url = “https://api.twitter.com/1.1/direct_messages/new.json” ;
$text=“hellotwor”;
$screen_name=“Laks…”;
$res=$tweet->post($url, array(‘text’ => “$text”,‘screen_name’ => “$screen_name”));

ERROR–
stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [message] => Sorry, that page does not exist [code] => 34 ) ) )

I am not getting what is the mistake.


#4

I’m having the same issue as @sankukatti