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

123
Views
How to send Token to API in react native

Backend developer send me API like this To test it on poastman

http://app/channel_partner/patients/add?token=59bd1e3711ce73c150b68f3741df4363cf766a0e2fe54dcb5f804a08f3f0d525

But now How can I send token to API in react native I am sending like this but its Not working

      let url = URLs.addLeads;
        let options = {
          method: "POST",
          url: url,
          headers: {
            Accept: "application/json",
            "Content-Type": "application/json",
          },
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You've tagged this with axios so use the params config option to safely add URL query parameters to your request

const options = {
  url: URLs.addLeads,
  method: "POST",
  params: { token }
};

This will add a token query parameter with a correctly URL-encoded value.

You don't need to change the headers; the Axios defaults already have you covered.

about 4 years ago · Juan Pablo Isaza Report
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!