in_reply_to_status_id is not getting set even when testing from Twitter REST API console


#1

EDIT: Never mind :slight_smile: I figured it out. The way I was passing the tweet ID was casting it as a number which was then getting rounded, so the tweet_ID was invalid. Sorry about the spam!

When trying to reply to a tweet via the REST API, the in_reply_to_status_id value that I send in the body is not getting applied. So, the reply ends up just looking like an @ message.

I tested in_reply_to_status_id in the Twitter console, and sure enough, got the same result. It’s as though in_reply_to_status_id is being ignored.

Here’s the request transcript straight from the console (with sensitive bits xxx’d out):

POST /1.1/statuses/update.json?status=%40daisythrash%20Yessss.&in_reply_to_status_id=681911029270380544&display_coordinates=false HTTP/1.1

Authorization:
    OAuth oauth_consumer_key="xxxxxxx",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1451418658",oauth_nonce="2382980352",oauth_version="1.0",oauth_token="xxxxxxxxxxxxx",oauth_signature="xxxxxxxxxxxx"
Host:
    api.twitter.com
Content-Length:
    0
X-Target-URI:
    https://api.twitter.com
Connection:
    Keep-Alive

Here’s the response from the console:

"created_at": "Tue Dec 29 19:50:58 +0000 2015",
  "id": 681925394497433600,
  "id_str": "681925394497433600",
  "text": "@daisythrash Yessss.",
  "source": "<a href="https://apigee.com/console/twitter" rel="nofollow">Apigee's API Console</a>",
  "truncated": false,
  "in_reply_to_status_id": null,
  "in_reply_to_status_id_str": null,
  "in_reply_to_user_id": 2778987709,
  "in_reply_to_user_id_str": "2778987709",
  "in_reply_to_screen_name": "daisythrash",

Has anything changed in the REST API? Should I be using a different syntax in order to reply?

Thanks!