title: HTTP Post get token response?
body: <p>I'm working with the Sinusbot API making post Requests in Java.</p>
  
  <p>I make the most and get a response of 200, which is good.</p>
  
  <p>However, It's also suppose to return a token for login when making the request, but I can't figure out how to get it.</p>
  
  <p>Any ideas?</p>
  
  <p><a href="https://www.sinusbot.com/api/#api-General-login" rel="nofollow noreferrer">https://www.sinusbot.com/api/#api-General-login</a></p>
  
  <p>Within a try catch statement</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>HttpPost request = new HttpPost("http://127.0.0.1:8087/api/v1/bot/login");
       // StringEntity params =new StringEntity("{'username': 'xx','password': 'foobar', 'botId': 'fillme'}");
        String payload = "{'username': 'test','password': 'atisbot', 'botId': '2ad5bffa-4374-4ef4-abae-77e793163577'}"; //atisbot 172b398f-f217-4bbc-8e14-9ea5f1463db7
        StringEntity entity = new StringEntity(payload,
                   ContentType.APPLICATION_FORM_URLENCODED);
           request.setEntity(entity);
  
           
           HttpResponse response = httpClient.execute(request);
           
           System.out.println(response.getStatusLine().getStatusCode());</code></pre>
  </div>
  </div>
  </p>