How to use Web API's with C++ language?

11,405

C++ from a box does not provide a support of HTTP protocol and a JSON parser. You should use third party libraries such as libcurl and libjson.

Here is an example, how to use libcurl to download a JSON data.

Share:
11,405
Admin
Author by

Admin

Updated on September 02, 2022

Comments

  • Admin
    Admin almost 2 years

    So i've been learning OOP is quite a while now and wanted to test out the little knowledge i have.. I wanted to use some API provided by the website, This API Checks if a username is already been taken. But how will i do it with C++? Where will i start?

    This is :

    http://www.roblox.com/UserCheck/DoesUsernameExist?username=bob1

    The username is taken so:

    {
        "success" :true
    }