我将在 C++ 中使用 dropbox rest api 做一些事情,并且我正在寻找一个易于使用的库。
有谁知道我需要什么功能?(我只是模糊地知道 REST api 是什么)
我相信我需要 HTTP 协议功能和 XML 解析功能,以及 JSON 对吗?还有什么?
您会向我推荐哪个易于使用且易于学习的库?
我找到了POCO C++,它看起来很简单,但我没有找到任何 JSON 功能......
The C++ REST SDK might have what you are looking for. It has a JSON parser and HTTP Client APIs that are very easy to use. You can check out the project on codeplex.
Edit - 05/2016
The Microsoft C++ REST SDK project has moved to Github at Microsoft/cpprestsdk which says:
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
The README.md has the following synopsis of what is in the SDK.
Features - HTTP client/server, JSON, URI, asynchronous streams, WebSockets client, oAuth
PPL Tasks - A powerful model for composing asynchronous operations based on C++ 11 features
Platforms - Windows desktop, Windows Store, Windows Phone, Ubuntu, OS X, iOS, and Android
Support for Visual Studio 2012, 2013, and 2015 with debugger visualizers
NuGet package with binaries for Windows and Android platforms
您看过ffead-cpp 吗,它为 REST 和 SOAP 服务提供了出色的支持。