How to Send Lead Form Data to swaggerhub Api using php?

136 Views Asked by At

I have a Swagger API on which, I had to send Lead Form Data From my Web Page. I Can't Get much data From internet. Form is Already Created on Swagger HUB on Which ,I can manually insert data and it's Working But I had to send data From my Webpage , I am Already sending Data From my Webpage to Google Sheets But I Can't insert same data into Swagger HUB API Dynamically Can Anyone Help me With it Thanks!

1

There are 1 best solutions below

1
On BEST ANSWER

As per documentation you have to use formdata to send infomration:

enter image description here

First you have to authenticate using authenticate endpoint and then use that token for authenticating the post endpoint.

enter image description here