Making calls with Java Unirest Help

Hey all I just started using Unirest to make API calls and I figured everything out except for one parameter I’m unsure how to specify in Unirest, when making a get, put, or post.

When I’m looking at the API docs some calls have a -d parameter in the curl call I’m not exactly sure how to specify this parameter in unirest. I know all the -H are headers which I can easily specify.

Any help would be appreciated

Thanks,
Satokaheni

-d (or --data) specifies the body in POST/PUT calls. For the Twitch API this can either be a JSON object or a form-encoded body.

See
http://unirest.io/java.html#user-content-custom-entity-body
http://unirest.io/java.html#user-content-serialization

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