Skip to content

StartupAPI/sample-twitter-client

Repository files navigation

This is a sample Twitter client application using http://StartupAPI.com

The basic functionality demonstrated is:
- Signup & login using your Twitter account
- displaying list of Twitter friends' latest posts after login

To use this example with your StartupAPI code.

1.  Register your app with Twitter: https://dev.twitter.com/apps/new
2.  Add your Twitter App Consumer key and consumer secret to  users_config.php


/**
 * Twitter Authentication configuration
 * Register your app here: https://dev.twitter.com/apps/new
 * And then uncomment two lines below and copy API Key and App Secret
 */
UserConfig::loadModule('twitter');
UserConfig::$modules[] = new TwitterAuthenticationModule('...api.key.goes.here...', '...api.secret.goes.here...');

3. Point your browser to the example Twitter Client application