Skip to content

pelayomendez/ofxTwitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxTwitter

OpenFrameworks addon for developing Twitter based projects.

Introduction

The original addon was created by Edric Stanley on 2010 and was adapted from code by Paul Shen. Afterwards Andrew Vergara updated the addon to use the most recent version of ofxHttpUtils.

With the new Twitter API 1.1 the old addon stopped working so I decided to start working in this new version.

Installation

Before using the examples you must create your app and obtain your "CONSUMER_KEY", "CONSUMER_SECRET" at https://dev.twitter.com/apps Afterwards edit testApp.cpp on the example you want to test adding that information on the setup().

Don´t forget to specify a callback url on the Twitter side, any URL will work it will work as a boolean. Also you´ll have to adjust the application access depending on the type of access your application needs.

After launching the example for the first time you´ll be taken through Twitter authorization process. A credentials.xml file will be created automatically in the data directory once you have authorized your app for the first time, containing the information needed to automatically authorize the application from then on.

Dependencies

  • ofxXmlSettings
  • Jeff Crouse's ofxJSON for parsing Twitter REST API JSON data as XML is not supported anymore by 1.1 API.
  • Christopher Baker's ofxOAuth addon.

It seems right now posting to Twitter dosen't work with latest version of ofxOauth so maybe you'll need to use this branch.

Compatibility

Curent version has been tested with:
OSX 10.9 OF 0.8 XCode
Linux OF 0.8 (@kalwalt)

Known issues

WIP

Version history

1.0 : 28/04/2014 . Twitter search / Post status and Images.

Licence

The code in this repository is available under the MIT License.

Copyright (c) 2013 OpenFrameworks Community & Pelayo Méndez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

OpenFrameworks addon for developing Twitter based projects.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.4%
  • C 7.6%