Como fazer isso no jersey 2.5
curl --request GET
–url ‘https://api.deliveryvip.com.br/merchant/v3/events/acknowledgment’
–header ‘Authorization: Bearer eyJ0eXAiOiJKV1QiLCJraWQiOiJkNkt2WERueFlqODRpZFUzWmFMbmpkM0Rsb2N4T3YxczBRZHh1WlRNWG9BIiwiYWxnIjoiSFM1MTIifQ.eyJpc3MiOiJEZWxpdmVyeVZpcCIsImlhdCI6MTY3NTk3MjQyMywianRpIjoiZGU1OTdhNjYtOWYwZi00NDQxLWExZTgtNmIwYTA0YWU5ZDA1IiwiYXBwTmFtZSI6IkRvY2tpJ3MgQXBwIiwib3duZXJOYW1lIjoiRGFuaWVsIERvY2tpIiwibWVyY2hhbnRJZHMiOlsiYzhmNTM2YWItNDMwNy00MDdiLWIwNGUtYWE2ZjBkZjlmMmU2Il0sInBhcnRuZXJJZHMiOltdfQ.7KUxAxOU68ghhir1tV8LDA4qXmEXSxdxQi9sbjnVdF3JX-Vs7qgL_1DwuX4UYx-TETuSmH0iW2ZyDht3HpyiWg’
–header ‘Content-Type: application/json’,
–data ‘[
{
“id”: “b4489c94-9f09-4841-908a-16484b3e6019”
}
]’
estou fazendo algo assim:
webTarget = client.target(sUrl);
Response response = webTarget.request()
.header("Authorization", "Bearer " + token.getAccess_token())
.get();
mas como eu passo os dados “data”?