Send Parameter With Reset Plugin

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'
}

i need to send paramter conditionally

if tweet truncated then send full text else send the text .

"tweet" => (truncated) ? :"%{extend_full_text}%" :"%{text}"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.