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

1

6

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
}
Aflutter answered 17/12, 2015 at 6:41 Comment(0)
N
5

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.

Numb answered 17/12, 2015 at 8:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.