how to create twitter style API url.. |
[eluser]Unknown[/eluser]
Hello, I want to share how to create Twitter style API url. twitter using API Url like this : Code: http://search.twitter.com/search.json?callback=foo&q=twitter now we create this configuration in application/config.php : Code: $config['uri_protocol'] = "PATH_INFO"; because i only need 1 controller using this, then i create this in my application/route.php Code: // Weather Services then, in my controller as usually, i create function weather and loc like this : Code: function weather($type) { and you can call the url http://your.server.url/weather.json?param and http://your.server.url/loc.json?param that's it.. thanks |
Messages In This Thread |
how to create twitter style API url.. - by El Forum - 07-26-2010, 12:57 AM
how to create twitter style API url.. - by El Forum - 07-26-2010, 02:10 AM
how to create twitter style API url.. - by El Forum - 07-26-2010, 02:27 AM
|