xXxCLOTIxXx / Amino.cpp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amino.cpp

Examples (more examples in the corresponding directory):

Login

#include "Amino/Client.h"

int main() {
    Client client;

    json data = client.login("example_mail@gmail.com", "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://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

About

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

License:MIT License


Languages

Language:C++ 97.7%Language:Shell 1.4%Language:CMake 0.8%Language:C 0.1%