Skip to content

It's instagram API library for Qt/C++ that forked from instagraph app. In fact We converted base classes of the instagraph app to the QtModule :)

License

Notifications You must be signed in to change notification settings

Aseman-Land/QtInstagraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QtInstagraph

It's instagram API library for Qt/C++ that forked from instagraph app. In fact We converted base classes of the instagraph app to the QtModule :) It's free, opensource and released under the GPL license.

Forked from: Instagraph App

Build

It's easy to build it. install Qt and dependencies:

sudo apt-get install g++ git qt5-default qtbase5-dev

And then build it:

git clone https://github.com/Aseman-Land/QtInstagraph.git
cd QtInstagraph
mkdir build && cd build
qmake .. -r
make
sudo make install

How to use it

It's easy too. Just add below line to the .pro file on your project

QT += instagraph

And include it in the source files:

#include <QtInstagraph>

And Login using below codes:

Instagraph insta = new Instagraph(this);
insta->setUsername("YOUR_USERNAME");
insta->setPassword("YOUR_PASSWORD");

connect(insta, static_cast<void(Instagraph::*)(QString)>(&Instagraph::error), this, [insta](QString msg){
    qDebug() << msg;
});
connect(insta, &Instagraph::profileConnected, this, [insta](QVariant answer){
    qDebug() << answer;
});
connect(insta, &Instagraph::profileConnectedFail, this, [insta](){
    qDebug() << "profileConnectedFail";
});

insta->login();

It's been fun :)

About

It's instagram API library for Qt/C++ that forked from instagraph app. In fact We converted base classes of the instagraph app to the QtModule :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages