Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++ lib to work with REST api for beginners [closed]

Tags:

c++

json

rest

I am going to do some things using dropbox rest api in C++ and I'm looking for an easy-to use library.

Does anyone know what functionality will I need? (I only have vague idea what REST api is)

I believe I need HTTP protocol functionality and XML parsing functionality, and JSON right? What else?

Which easy-to-use and easy-to-learn lib would you recommend me?

I found POCO C++ and it seems quite easy but I didn't find any JSON functionality...

like image 461
Peter Dubec Avatar asked May 21 '12 12:05

Peter Dubec


1 Answers

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

like image 184
Sana Avatar answered Nov 10 '22 10:11

Sana