Slides from a presentation (at YDN Tuesdays) on how to use YQL using OAuth, CodeIgniter (PHP MVC framework) and external web services. To get the code mentioned in this presentation go to http://github.com/kulor/yql_php/tree
14. Demonstration
• Manual 3 Leg OAuth process
• http://carbonsilk.com/oauth/example/
client.php
• Our example uses 2 Leg - no need for the
user to leave the page but we only get
access to public information.
15. Getting Started
• Getting our development environment set
up
• Obtaining our application keys
• Covering the PHP code needed to run our
application
22. Obtaining Application
Keys
• Go to https://developer.yahoo.com/
dashboard/ and register a new OAuth
application
• One I made earlier: https://
developer.yahoo.com/dashboard/
success.html?key=xxx
23. Configuring Our App
• Open system/application/libraries/yql_lib.php
• Add your OAuth key and secret
24. Upload
• We need to upload to the domain
registered earlier for authentication
• rsync -r --progress ~/Sites/project_search/
you@yoursite.com:~/public_html/
project_search/
25. Review our framework
code
We look behind what has been installed - The
CodeIgniter Libraries and controllers
26. Live Code Time
Adding a new query - Scraping the Finance news top
stories and presenting them using a view and a
controller