Skip to content

gumb0/cpp-instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-instagram

C++ client library for Instagram REST API.

Only some of the APIs are supported now.

Has been built with MS Visual Studio Express 2013 (see solution and project files in msvc directory), but contains no platform dependencies and should be easily portable.

requirements

sample code

#include "cpp-instagram/AuthenticatedClient.h"
#include "cpp-instagram/Exception.h"

using namespace Instagram;

void downloadPopularImages()
{
    try
    {
        AuthenticatedClientPtr client = CreateAuthenticatedClient(userToken);

        MediaList medias = client->getPopularMedias();

        for (MediaPtr media : medias)
        {
            const std::string id = media->getId();
            media->getImages()->getStandardResolution()->download(id + ".jpg");
        }
    }
    catch (const Exception& e)
    {
        std::cerr << e.getMessage() << std::endl;
    }
}
  

About

C++ wrapper for Instagram REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published