title: httr authentication login/password in "xtb" API
body: <p>I need to authenticate and get prices using <a href="http://developers.xstore.pro/documentation/#login" rel="nofollow noreferrer">this api</a></p>
  <p>I have no experience with api so my attempt to login gives an error</p>
  <pre><code>login &lt;- &quot;vikov98261@jesdoit.com&quot;
  pass &lt;- &quot;QazQaz123&quot;
  
  library(httr)
  resp &lt;- POST(&quot;xapi.xtb.com&quot;, 
               body=list(userId = login,
                         password = pass) )
  
  Error in curl::curl_fetch_memory(url, handle = handle) : 
    Failed to connect to xapi.xtb.com port 80: Timed out
  </code></pre>
  <p>Can someone show me how to do it right.
  I would like an example of how the <code>login</code> request works.
  And also I would like an example of how to get the prices of any currency</p>