Instagram data extraction

Hi, I’ve been struggling with a first project I want to set up on my Argon. While trying to use a project for an ESP32/ESP8266, I already found an adapted library for Particle devices. However, I get a compiling error which is blocking my progress.

Original project: https://github.com/witnessmenow/arduino-instagram-stats

The error I get: “cannot declare variable ‘listener’ to be of abstract type ‘InstagramUserListener’”

It would be amazing if anyone here could help me find out what I’m doing wrong.

My project: https://go.particle.io/shared_apps/5cff9c461f8369001f9bf89a

edit: The example code from the JSON library I’m using compiles fine and is commented below the project code.

The compiler is trying to tell you that you need to provide at least 1 implementation of a method in that class. If you look at the definition of JsonListener (https://github.com/squix78/json-streaming-parser/blob/master/JsonListener.h), all the methods are pure virtuals. This means that you must provide implementations of those methods in your derived class. Check out this -https://github.com/witnessmenow/arduino-instagram-stats/blob/master/src/InstagramStats.cpp - to see the implementation of InstagramUserListener provided in the referenced library.

Good luck!

2 Likes