在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tastytea/mastodonpp开源软件地址(OpenSource Url):https://github.com/tastytea/mastodonpp开源编程语言(OpenSource Language):C++ 90.8%开源软件介绍(OpenSource Introduction):mastodonppmastodonpp is a C++ wrapper for the Mastodon and Pleroma APIs. It replaces mastodon-cpp. We aim to create a library that is comfortable, yet minimal. All API endpoints
from Mastodon and Pleroma are stored in Table of Contents
FeaturesHere is a rough overview of the features:
UsageHave a look at the reference. Example#include <mastodonpp/mastodonpp.hpp>
#include <iostream>
int main()
{
mastodonpp::Instance instance{"example.com", "123AccessToken123"};
instance.set_proxy("socks4a://[::1]:9050");
mastodonpp::Connection connection{instance};
const mastodonpp::parametermap parameters
{
{"status", "How is the weather?"},
{"poll[options]", vector<string_view>{"Nice", "not nice"}},
{"poll[expires_in]", "86400"}
};
auto answer{connection.post(mastodonpp::API::v1::statuses, parameters)};
if (answer)
{
std::cout << answer << std::endl;
}
} More examples are included in the reference. InstallGentooeselect repository enable guru
echo 'dev-cpp/mastodonpp' >> /etc/portage/package.accept_keywords/mastodonpp
emaint sync -r guru
emerge -a dev-cpp/mastodonpp ArchThe git-version is available via the AUR: https://aur.archlinux.org/packages/mastodonpp-git/. Debian and UbuntuWe automatically generate packages for Debian buster (10) and Ubuntu bionic (18.04), but only for x86_64 (amd64). Download them at schlomp.space. apt install ./libmastodonpp*.deb CentOSWe automatically generate packages for CentOS 8, but only for x86_64 (amd64). Download them at schlomp.space. yum install ./libmastodonpp*.rpm From sourceDependenciesGet sourcecodeReleaseDownload the current release at schlomp.space. Development versiongit clone https://schlomp.space/tastytea/mastodonpp.git Compilemkdir -p build && cd build
cmake ..
cmake --build . -- -j$(nproc --ignore=1) CMake options:
To create a deb or rpm package, run |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论