Giter Site home page Giter Site logo

tmhoauthexamples's Introduction

tmhOAuth-examples

A repository containing example uses of tmhOAuth.

Dependencies

These examples require tmhOAuth version 0.8.0 or higher. They have been tested with PHP 5.3+.

The easiest way to install tmhOAuth is to use composer. if you prefer to do things the manual way make sure you git clone tmhOAuth into the main tmhOAuthExamples directory (the same one this file is in).

Usage

Edit tmhOAuthExample.php and enter your application and user values for:

  • 'consumer_key'
  • 'consumer_secret'
  • 'user_token'
  • 'user_secret'
  • 'bearer'

If you're just trying things out it's recommended you use a test account instead of your real one as some examples do things like tweet or follow.

To create an application, visit dev.twitter.com/apps

For command line examples, go into the cli directory and execute any of the examples using php <filename>.php. Remember some examples make POST actions, and will tweet or follow on your behalf.

For web based examples add tmhOAuthExamples to a location on your webserver that you access via a URL.

Change History

0.1 - 14 June 2013

  • switched all examples to Twitter API v1.1
  • removed redundant/confusing examples
  • centralised examples as children of a master example configuration script (tmhOAuthExample.php)

Community

License: Apache 2 (see included LICENSE file)

Follow @tmhOAuth to receive updates on releases, or ask for support Follow me on Twitter: @themattharris Check out the Twitter Developer Resources: https://dev.twitter.com

To Do

  • More streaming api examples
  • Control Streams examples
  • More Web request examples

tmhoauthexamples's People

Watchers

James Cloos avatar Lucas Formariz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.