Hi, im a simple user and i got a b2b api key with some sample code. I want to list all the products from a company. First to my localhost. Maybe la...
For further actions, you may consider blocking this person and/or reporting abuse
Hi welcome to Dev.to, first some nice tips to make your code snippet look a little but better.
With the triple backtick around your code on top and bottom you can make the formatting a little nicer.
Second, you didn't specify if you want to call this from PHP (the backend) or from Javascript (front-end) so I just assumed you where going to use the backend for this.
Here is a small snippet to get you up to speed in PHP, there are of course lots of libraries to do this better but cURL is your best friend here:
thank you for your answer, so i see but the endpoint is my localhost. and the product list is from an another website. i tried it but doesnt work
From: api.wycena.keno-energy.com/
To: my localhost
API: IHAVETHEKEY
API DOCU: api.wycena.keno-energy.com/Dokumen...