I am using reset with twitter API and i need to pass conditonal paramter
like
tweet_id" =>"tweet" =>(truncated) ? :"%{extend_full_text}%" :"%{text}"
below my code .
rest
{
request => {
cacert => 'E:/Momp_Social_Media_BigData/elasticsearch-7.5.1/CertificateConfig/ca/ca.crt'
ssl => true
ssl_certificate_verification => false
url => "http://10.153.1.12:2020/sentiement"
method => "post"
params => {
"tweet" => "%{text}"
"tweet_id" => "%{id_str}"
}
headers => { "Content-Type" => "application/json" }
}
target => 'rest'
}