Skip to content

Slavchu/telegraph-c-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegraph API for C++

This is basic telegraph api that uses curl under its logic. For json used nlohmann json library.

How to use it

There is only one class. To start work you have to create class TelegraphApi. Example:

telegraph::TelegraphApi(telegraph::TelegraphApi::create_account("example shortname", "exmaple name", "example url"));

Function
TelegraphApi::uploadImage(std::string bin);
returns string with image url after upload image binary!

        std::string create_page(std::string title, std::vector<std::string> images, std::string text, std::string author_url = "", std::string author_name = "");

create_page method returns url for a page.

CMake

add_subdirectory(Library relative directory path)
target_link_libraries(YourProject telegraph_api)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors