Custom Fields

restapi
rest
api

#1

Hi,
I’m looking for twitter custom fields support for rest apis.
Can we create a custom field in twitter app?


#2

What do you mean by custom field? Can you clarify what you are trying to achieve?

There’s really only the text inside the Tweet status. There’s no additional “custom” field beyond what is offered in the JSON Tweet object.


#3

For POST status API I’m using following body

{
“status”:“custom text”
}

I want to be able to give following body

{
“status”:“custom text”,
“source”:“news_article”
}

Here, “source” would be my custom field.


#4

Unfortunately that is not possible within the Twitter API - it does not support custom data fields that are not part of the existing JSON objects. There is a source value in a Tweet object, but it relates to the application that sent the Tweet, not the original source of the text information.