Giter VIP home page Giter VIP logo

cpr-example's Introduction

C++ Requests Example

Travis Build Status Appveyor Build Status

C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.

This is a forkable repository that handles the boilerplate of building and integrating this library into a networked application.

Building

This project and C++ Requests both use CMake. The first step is to make sure all of the submodules are initialized:

git submodule update --init --recursive

Then make a build directory and do a typical CMake build from there:

mkdir build
cd build
cmake ..
make

This should produce a binary in the build directory called example. Run it! If you get a response in the form of some json object, then everything worked as expected! The program you just ran is a sweet 3 liner you'll find here.

Documentation

You can get the latest documentation here. It's a work in progress, but it should give you a better idea of how to use the library than the tests currently do.

Requirements

The only explicit requirement is a C++11 compatible compiler such as clang or gcc. The minimum required version of gcc is unknown, so if anyone has trouble building this library with a specific version of gcc, do let me know.

Contributing

Please fork the parent repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.

For direct contributions to the example project, you can open pull requests or issues.

cpr-example's People

Contributors

whoshuu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.