2017 © Pedro Peláez
 

fuel-package fuel-packages-chatwork

image

mp-php/fuel-packages-chatwork

  • Wednesday, December 11, 2013
  • by mamor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 489 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FuelPHP Package for ChatWork


Install

Setup to fuel/packages/chatwork

  • Use composer https://packagist.org/packages/mp-php/fuel-packages-chatwork
  • git submodule
  • Download zip

Configuration

One

In app/config/config.php, (*1)

'always_load' => array('packages' => array(
    'chatwork',
    ...

or in your code, (*2)

Package::load('chatwork');
Two

Copy packages/chatwork/config/chatwork.php to under app/config directory and edit, (*3)

Example

Get yourself data

$response = Chatwork::get('/me');
Debug::dump($response);

Post massage to room

$response = Chatwork::post('/rooms/{room_id}/messages', array('body' => 'Hello!'));
Debug::dump($response);

License

Copyright 2013, Mamoru Otsuka. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php, (*4)

The Versions

11/12 2013

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Mamoru Otsuka