ode></pre>
<p>The <code>method</code> option is an <a href="https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods">HTTP method</a>. To retrieve data from the server without causing side-effects on the server, we need to use the <code>GET</code> method. The <code>url</code> is the address for the API endpoint. The <code>withCredentials: true</code> line indicates that we&#39;re using cookies (which is a requirement for the REM API).</p>
<p>The <code>m.request</code> call returns a Promise