Want to make a class that is linked to an API

Hello everyone,

I would like to make a class that is connected to an API.
Now I see that I can use CURL but they do not give a PHP example.

So my question how do I set parameters for that API ?
I will include the link to the repository.

Best regards,
Wouter.

PHP has a wrapper for the cURL library: http://php.net/manual/en/book.curl.php

though you may want to use a wrapper around that (e.g. https://github.com/guzzle/guzzle)

I check the documentation with guzzle but I cannot figure out if I should post or get.
Or maybe both.

I have never worked with a API and with curl so I hope you could explain a bit more if you could.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.