Skip to content

Multifunctional library in C++ for the amino social network (beta)

License

Notifications You must be signed in to change notification settings

xXxCLOTIxXx/Amino.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amino.cpp

Examples (more examples in the corresponding directory):

Login

#include "Amino/Client.h"

int main() {
    Client client;

    json data = client.login("[email protected]", "example_password");
    std::cout << "userId: " << client.profile.userId << std::endl << "SID: " << client.profile.sid << std::endl;
    std::cout << std::endl << "Account info: " << data << std::endl;

    data = client.logout();
    std::cout << std::endl << "logout info: " << data << std::endl;
    return 0;
}

Get link info

#include "Amino/Client.h"
int main() {
    Client client;
    std::cout << client.get_from_link("http:https://aminoapps.com/p/13zo0g");

    return 0;
}

Install lib & Compiling your programs:

git clone https://github.com/xXxCLOTIxXx/Amino.cpp.git
cd Amino.cpp
sh collect.sh
sh run.sh

when you run run.sh, there should be a file with your main.cpp code in the same directory