2017 © Pedro Peláez
 

yii2-extension yii2-seatwave-api

Yii 2 Seatwave API extension. http://www.yiiframework.com

image

ticketbureau/yii2-seatwave-api

Yii 2 Seatwave API extension. http://www.yiiframework.com

  • Friday, December 4, 2015
  • by ebisbe-byhours
  • Repository
  • 3 Watchers
  • 0 Stars
  • 272 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

yii2-seatwave-api

This project is meant to be a easy way to connect with Seatwave API. All information about their API can be found at http://developer.seatwave.com/Api/Api/discovery., (*1)

Create a configuration in main.php with the following values, (*2)


'components' => [ ... 'api' => [ 'class' => 'ticketbureau\seatwave\Connection', 'endpoint' => 'http://api-sandbox.seatwave.com/v2/discovery/', ], ... ],

Here you have a sample model for Categories from Seatwave, (*3)

        <?php

        namespace seatwave\models;

        use Yii;
        use ticketbureau\seatwave\ActiveRecord;
        use ticketbureau\seatwave\ActiveDataProvider;


        class Category extends ActiveRecord
        {

            /**
             * @inheritdoc
             */
            public static function tableName()
            {
                return 'Categories';
            }

            public static function primaryKey() {
                return ['Id'];
            }

            public function attributes()
            {
                return [
                    'Id',
                    'Name',
                    'GenreId',
                ];
            }

            public static function additionalParams()
            {
                return ['apiKey' => '4739E4694D0E482A92C9D0B478D83934']; //Public key api found http://developer.seatwave.com/API/method/GetCategories?apiName=discovery
            }

            /**
             * Creates data provider instance with search query applied
             *
             * @param array $params
             *
             * @return ActiveDataProvider
             */
            public function search($params)
            {
                $query = Category::find();

                $dataProvider = new ActiveDataProvider([
                    'query' => $query,
                ]);

                return $dataProvider;
            }
        }

The Versions

04/12 2015

dev-master

9999999-dev

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

GPL-3.0+

The Requires

 

extension yii2

04/12 2015

v1.4

1.4.0.0

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

GPL-3.0+

The Requires

 

extension yii2

19/08 2015

v1.3

1.3.0.0

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

GPL-3.0+

The Requires

 

extension yii2

18/08 2015

v1.2

1.2.0.0

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

GPL-3.0+

The Requires

 

extension yii2

14/08 2015

v1.1

1.1.0.0

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

GPL-3.0+

The Requires

 

extension yii2

14/08 2015

v1.0

1.0.0.0

Yii 2 Seatwave API extension. http://www.yiiframework.com

  Sources   Download

The Requires