XF 2.2 C++ authentication (libcurl)


I saw some old examples of login authentication using /api/auth but looks like the rest api changed these in 2.1/2.2.

Is anyone familiar with using libcurl and getting access to the /api/auth.
I know it grabs users information once it recognizes the request.
All attempts lead to the API key not being sent.

Been searching for possible methods but haven't found anything and this is the first time trying to utilize the rest api.