Setting up the twitter API to OF


#1

Hello everyone!

I am trying to use the REST Twitter API with open frameworks and I am a little bit confused with how to set it up.
When I have been using API before I just put it like this:

string url = “https://myApil_Link_withMyPassword”;

bool parsingSuccessful = json.open(url);

if (parsingSuccessful) {
    ofLogNotice("ofApp::setup") << "parse successful";
}else {
    ofLogNotice("ofApp::setup") << "failed to parse JSON";
}

Now I have to put in the username and password for the api along with an access token and I have no clue how to do that, it doesn’t work to
just put in a link :pensive:

I will be so grateful for those who would be able to help!
thanks


#2

#3

THANK YOU. You saved my life.