title: using paramters in a fetch get call?
body: <p>I am getting a 200 code from fetching the url but I cant figure out how to add the params. For now I just want to get the data to work with. how to get it to log the data?</p>
  <pre><code>  const params = {
    latitude: &quot;33.775867&quot;,
    longitude: &quot;-84.39733&quot;,
    elevation: &quot;50&quot;,
    from_date: &quot;2018-12-20&quot;,
    to_date: &quot;2018-12-22&quot;,
    time: &quot;08:00:00&quot;,
  };
  
  fetch(&quot;https://api.astronomyapi.com/api/v2/bodies/positions&quot;, params, {
    method: &quot;GET&quot;,
    headers: {
      Authorization: &quot;Basic &quot; + btoa(&quot;apllication id:aplaciton secret&quot;),
    },
  })
    .then((response) =&gt; response.json())
    .then((data) =&gt; console.log(data));
  </code></pre>