简体   繁体   中英

Integrating QR code API with c++

Is it possible to integrate a QR-code API in a C++ console application ( http://goqr.me/api/ ) and auto save the pictures in a folder?

The format of the QR API is

https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=###########

API Documentation: http://goqr.me/api/doc/create-qr-code/

where ####### is the number or sentence I want to generate a QR code of.

Judging by the information given: Yes it is.

Take a look at libcurl ( http://curl.haxx.se/libcurl/ ), although it's a C library there are several C++ bindings you can use, for instance:

http://curl.haxx.se/libcurl/cplusplus/

There are basic examples on the curl webpage for making requests and handling response (I assume you now how to save data from memory to file in C++). This should be all you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM