C++ REST SDK in Visual Studio 2013

The C++ REST project provides a modern asynchronous C++ API for cloud-based client-server communication. It is available on codeplex and works with Visual Studio 2010 and 2012, but it is now distributed with Visual Studio 2013. The preview version of VS2013 deploys version 1.0 of the SDK. Since its release a new version of the SDK (v1.1.0) has been made available.

The following example shows how to retrieve and display some JSON content. I’m querying google using its REST API. Here is how a query (for a single result) may look:

https://ajax.googleapis.com/ajax/services/search/web?q=marius%20bancila&v=1.0&rsz=1

The result that we get is a JSON value. From this value I will only display the URL and the (un-formatted) title.

http://mariusbancila.ro/blog/2013/08/02/cpp-rest-sdk-in-visual-studio-2013/

原文地址:https://www.cnblogs.com/dyg540/p/5009343.html