title: Convert -F curl flags to axios request
body: <p>I'm pretty sure I'm not converting the <code>-F</code> flags from the curl request incorrectly.</p>
  <p>Here is the curl request:</p>
  <pre><code>curl -X POST \
    https://api.instagram.com/oauth/access_token \
    -F client_id=990602627938098 \
    -F client_secret=eb8c7... \
    -F grant_type=authorization_code \
    -F redirect_uri=https://socialsizzle.herokuapp.com/auth/ \
    -F code=AQCvI...
  </code></pre>
  <p>Here is my <code>axios</code> request:</p>
  <pre><code>try {
          const res = await axios.post(
            &quot;https://api.instagram.com/oauth/access_token&quot;,
            {
              params: {
                client_id: &quot;146179390&quot;,
                client_secret: &quot;5436e5ca5ed29895e42c85825b&quot;,
                code: &quot;6tPDoIMdkUbSWw&quot;,
                grant_type: &quot;authorization_code&quot;,
                redirect_uri: &quot;https://www.example.com/&quot;,
              },
            }
          );
          console.log(res);
        } catch (error) {
          console.log(error);
        }
  </code></pre>
  <p>I also tried:</p>
  <pre><code>const formdata = new FormData();
  
        formdata.append(&quot;client_id&quot;, &quot;146179390&quot;);
        formdata.append(&quot;client_secret&quot;, &quot;5a5ed29895e42c85825b&quot;);
        formdata.append(
          &quot;code&quot;,
          &quot;AQCkRliWFrgH1k&quot;
        );
        formdata.append(&quot;grant_type&quot;, &quot;authorization_code&quot;);
        formdata.append(&quot;redirect_uri&quot;, &quot;https://www.example.com/&quot;);
  
        try {
          const res = await axios.post(
            &quot;https://api.instagram.com/oauth/access_token&quot;,
            formdata
          );
          console.log(res);
        } catch (error) {
          console.log(error);
        }
  </code></pre>