durdyev / githubapicpp

GitHub Rest API V3 C++, CURL, rapidjson implementation

Home Page:http://idurdyev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GITHub API C++ implementation

This is a C++ implementation of GITHub API. This API was built for my goals, may be not full api. But you can change source code for your goals under Apache 2.0 License.

Doxygen documentation available here https://codedocs.xyz/durdyev/githubapicpp/

Dependecies

You need to install CURL and RapidJSON

Installation

$ cmake .
$ make
$ sudo make install

Example

#include <iostream>
#include <githubapicpp/GitHubAPI.h>

int main(void)
{
    githubapicpp::GitHubAPI api("your_client_id",
                                "your_secret");
    githubapicpp::User user = api.getUser("durdyev");
    std::cout << user.getName() << std::endl;
    return 0;
}

About

GitHub Rest API V3 C++, CURL, rapidjson implementation

http://idurdyev.com

License:Apache License 2.0


Languages

Language:C++ 75.6%Language:CMake 24.4%