{"id":20087657,"url":"https://github.com/ginolatorilla/splitwisecpp","last_synced_at":"2025-03-02T14:41:57.315Z","repository":{"id":45438992,"uuid":"262306194","full_name":"ginolatorilla/splitwisecpp","owner":"ginolatorilla","description":"A native C++ API for the Splitwise App","archived":false,"fork":false,"pushed_at":"2022-07-06T20:53:16.000Z","size":151,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T02:27:03.792Z","etag":null,"topics":["api","api-rest","cpp","splitwise","splitwise-api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ginolatorilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T11:30:56.000Z","updated_at":"2024-07-13T03:36:17.000Z","dependencies_parsed_at":"2022-09-25T07:54:50.398Z","dependency_job_id":null,"html_url":"https://github.com/ginolatorilla/splitwisecpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fsplitwisecpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fsplitwisecpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fsplitwisecpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fsplitwisecpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ginolatorilla","download_url":"https://codeload.github.com/ginolatorilla/splitwisecpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241523941,"owners_count":19976424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-rest","cpp","splitwise","splitwise-api"],"created_at":"2024-11-13T16:06:01.339Z","updated_at":"2025-03-02T14:41:57.283Z","avatar_url":"https://github.com/ginolatorilla.png","language":"C++","readme":"# Splitwise C++ API\n\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/ginolatorilla/splitwisecpp/C%2B%2B%20with%20CMake?style=plastic)](https://github.com/ginolatorilla/splitwisecpp/actions?query=branch%3Amaster)\n[![Codecov](https://img.shields.io/codecov/c/gh/ginolatorilla/splitwisecpp?style=plastic)](https://codecov.io/gh/ginolatorilla/splitwisecpp)\n\n![GitHub repo size](https://img.shields.io/github/repo-size/ginolatorilla/splitwisecpp?style=plastic)\n\nA native C++ API for [the Splitwise App](https://www.splitwise.com/). Written in C++14.\n\nTested in Linux.\n\n:warning: This library is in beta phase. All APIs are implemented but corner-cases might not be tested.\n**Use at your own risk.** :warning:\n\n## Quick Start\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003ccassert\u003e\n#include \u003csplitwisecpp/splitwisecpp.h\u003e\n\nint main()\n{\n    splitwisecpp::Config config;\n    config.consumer_key = \"your_consumer_key\";\n    config.consumer_secret = \"your_consumer_secret\";\n    config.oauth1_token = \"your_oauth1_token\";\n    config.oauth1_token_secret = \"your_oauth1_token_secret\";\n    splitwisecpp::Splitwise splitwise(config);\n\n    splitwisecpp::ApiResponse the_user = splitwise.get_current_user();\n    assert(spliwisecpp::ErrorCodes::NoError = the_user.error);\n    std::cout \u003c\u003c the_user.json[\"user\"][\"first_name\"] \u003c\u003c std::endl;\n}\n```\n\n## Requirements\n\n- [libcurl](https://curl.haxx.se/libcurl/)\n- [jsoncpp](https://github.com/open-source-parsers/jsoncpp)\n- Includes [liboauthcpp](https://github.com/sirikata/liboauthcpp)\n\nAdditional components if you want to develop this:\n\n- C++ compiler that supports C++14 (preferably `gcc` or `clang`)\n- CMake\n- [gcovr](https://gcovr.com/en/stable/), for code coverage\n- [clang-format](https://clang.llvm.org/docs/ClangFormat.html), for code formatting\n- [clang-tidy](https://clang.llvm.org/extra/clang-tidy/), for static analysis\n- Python 3.6\n- Python Jinja2\n\nGTest will be automatically downloaded from GitHub if you don't have it pre-installed.\n\n## Features\n\n- Authentication using OAuth1 tokens.\n  Please read the Splitwise [docs](http://dev.splitwise.com/#authentication) to learn more.\n- (As of 26 May 2020) Implemented all the APIs described in\n  Splitwise's [developer documentation](http://dev.splitwise.com/).\n- Exports public types from `jsoncpp`\n\n## Limitations\n\n- Thread-unsafe. The `splitwisecpp::Splitwise` class must be instantiated in one thread.\n\n## Backlog\n\n- [ ] Allow C linkage\n- [ ] Allow replacement of libcurl via plugins\n- [ ] Support OAuth2\n- [ ] Support for Windows (ie Win32)\n- [ ] Extra tools for:\n  - [ ] OAuth1 generation\n  - [ ] Command line interface\n- [ ] API documentation\n\n## For Developers\n\nAdd new API methods in `src/api_method_descriptors.yaml` (the schema is in the comments).\nThen run `tools/generate_cpp_api_from_descriptor` to generate interfaces and implementation code.\n\nYou may use `pipenv` to install a virtual environment.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginolatorilla%2Fsplitwisecpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fginolatorilla%2Fsplitwisecpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginolatorilla%2Fsplitwisecpp/lists"}