user5430360
user5430360

Reputation:

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

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 web site. 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
}

Upvotes: 6

Views: 22573

Answers (1)

brainstream
brainstream

Reputation: 461

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.

Upvotes: 5

Related Questions