Responding to Tweets using Twitter4J and new reply syntax

twitter4j
java
simplified-replies

#1

Hi All,

I am making some modification on twitter4j API,regarding the latest changes of twitter for support of 140 characters,where we need to add one more attribute as auto_populate_reply_metadata.

I have made all changes,able to successfully reply on any post.(providerId: 877784670049456128)
I am getting the response with providerId :-877785457131610112 and the reply count get increased on twitter against the particular post.

The only problem I am facing is, I am not getting the reply message in the post chain.
For this I have to natively hit this url https://twitter.com/tat14002/status/877785457131610112 then ,I am able to see the replied message .

Moreover, through my code in-spite of getting successful response from Twitter, some time reply text appear on post-reply chain and for the same code some time only reply count increased but reply message does not appear.

Payload request is:
Method: POST
Url: "http://co-stable.dev.omniture.com/squawk/twitter_api/Porkchop%20Sandwiches/tat14002/1.1/statuses/update.json"
Header {
Key: "X-Twitter-Client-Version"
Value: “4.0.6”
}
Header {
Key: "X-Twitter-Client-URL"
Value: “http://twitter4j.org/en/twitter4j-4.0.6.xml
}
Header {
Key: "X-Twitter-Client"
Value: “Twitter4J”
}
Header {
Key: "User-Agent"
Value: “twitter4j http://twitter4j.org/ /4.0.6”
}
Header {
Key: "Accept-Encoding"
Value: “gzip”
}
Header {
Key: "Content-Type"
Value: “application/x-www-form-urlencoded”
}
Header {
Key: "Content-Length"
Value: “343”
}
Payload: "status=Women%20at%20some%20time%20are%20the%20masters%20of%20their%20fates%3A%20The%20fault%2C%20dear%20Brutus%2C%20is%20not%20in%20our%20stars%2Cbut%20in%20ourselves%2Cthat%20we%20are&in_reply_to_status_id=856726835010322432&auto_populate_reply_metadata=true&include_entities=true&include_ext_alt_text=true&proxy_company=Porkchop%20Sandwiches"
FollowRedirects: true

Could someone help me on this.

Thanks,
Abhishek