# Making calls with Java Unirest Help

**URL:** <https://discuss.dev.twitch.com/t/making-calls-with-java-unirest-help/11131>\
**Category:** API\
**Created:** [July 20, 2017, 6:37am UTC](https://discuss.dev.twitch.com/t/making-calls-with-java-unirest-help/11131 "2017-07-20T06:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satokaheni](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Satokaheni](https://discuss.dev.twitch.com/u/Satokaheni)\
**Post date:** [July 20, 2017, 6:37am UTC](https://discuss.dev.twitch.com/t/making-calls-with-java-unirest-help/11131/1 "2017-07-20T06:37:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alca](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/alca/32/2783_2.png) [@Alca](https://discuss.dev.twitch.com/u/Alca)\
**Post date:** [July 20, 2017, 9:54am UTC](https://discuss.dev.twitch.com/t/making-calls-with-java-unirest-help/11131/2 "2017-07-20T09:54:10Z")

</div>

`-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-custom-entity-body)  
[http://unirest.io/java.html#user-content-serialization](http://unirest.io/java.html#user-content-serialization)

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 19, 2017, 9:54am UTC](https://discuss.dev.twitch.com/t/making-calls-with-java-unirest-help/11131/3 "2017-08-19T09:54:18Z")

</div>

Closed on August 19, 2017, 9:54am UTC

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