sfJunaioChannelPlugin - 0.1.3

The sfJunaioChannelPlugin serves as Junaio Channel and provides POI data, which is managed with the sfJunaioBackendPlugin.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfJunaioChannel plugin

The sfJunaioChannelPlugin serves as Junaio Channel and provides POI data, which is managed with the sfJunaioBackendPlugin.

You need a Junaio Developer Account, which can created here:

http://www.junaio.com/publisher

Installation

  • Install the plugin (via a package)

    symfony plugin:install --stability=beta sfJunaioChannelPlugin
    
  • Install the plugin (via a Subversion checkout)

    svn co http//svn.symfony-project.com/plugins/sfJunaioChannelPlugin/trunk plugins/sfJunaioChannelPlugin
    
  • Activate the plugin in the config/ProjectConfiguration.class.php

    class ProjectConfiguration extends sfProjectConfiguration {
        public function setup() { $this->enablePlugins('sfJunaioChannelPlugin'); }
    }
    
  • Generate a Channel Application

    ./symfony generate:app channel
    
  • Enable the plugin in the channel application's settings.yml

    all:
      .settings:
         enabled_modules:
           - sfJunaioChannel
    
  • Add a Route to the channel application's routing.yml to enable the search interface

      junaio_search:
        url: /sfJunaioChannel/pois/search/
        param: { module: sfJunaioChannel, action: search }
    
  • Add your Junaio Channel api_key in the channel application's app.yml

    all:
      junaio:
        api_host: api.junaio.com
        auth_date_tolerance: 900000
        api_key: ... # your_junaio_api_key
        dev_user: ... # your_junaio_user_name
        dev_pass: ... # your_junaio_password
    
  • Clear you cache

    symfony cc
    
  • Edit the apps/channel/lib/myUser.class.php and extend the myUser class from the sfJunaioChannelUser provided with the sfJunaioChannelPlugin

    <?php
    
    class myUser extends sfJunaioChannelUser { }
    
  • Generate a new Junaio Channel at the Junaio Website

    As the Callback URL choose http://your_webroot//channel.php/sfJunaioChannel and for Supported Features use None

Test the Channel

You are ready to test the sfJunaioChannelPlugin with the validation procedure of your Junaio Channel, or by calling the dev enviroment of the channel:

http://your_webroot/channel_dev.php/sfJunaioChannel/pois/search/?&l=37.77522,-122.420082,0

The search request points to the location in San Francisco. The sfJunaioBackendPlugin provides a fixture POI Data for this purpose.