Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Convertir banderas -F curl a solicitud de axios

Estoy bastante seguro de que no estoy convirtiendo incorrectamente las banderas -F de la solicitud curl.

Aquí está la solicitud de curl:

 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...

Aquí está mi solicitud axios :

 try { const res = await axios.post( "https://api.instagram.com/oauth/access_token", { params: { client_id: "146179390", client_secret: "5436e5ca5ed29895e42c85825b", code: "6tPDoIMdkUbSWw", grant_type: "authorization_code", redirect_uri: "https://www.example.com/", }, } ); console.log(res); } catch (error) { console.log(error); }

También probé:

 const formdata = new FormData(); formdata.append("client_id", "146179390"); formdata.append("client_secret", "5a5ed29895e42c85825b"); formdata.append( "code", "AQCkRliWFrgH1k" ); formdata.append("grant_type", "authorization_code"); formdata.append("redirect_uri", "https://www.example.com/"); try { const res = await axios.post( "https://api.instagram.com/oauth/access_token", formdata ); console.log(res); } catch (error) { console.log(error); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!