2017 © Pedro Peláez
 

library php-api

PHP Wrapper to access the Picatic API

image

picatic/php-api

PHP Wrapper to access the Picatic API

  • Tuesday, April 28, 2015
  • by picatic
  • Repository
  • 2 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

Picatic API PHP

What you need to know, (*1)

  • Everything has an interface, everything is pluggable
  • We avoid statics for almost everything to make testing easier
  • There are some odd wrapping functions/classes as a result of our adversion to static methods
  • We break the ideal that static and instance methods operate on those levels.

Our "static" methods are prefixed with "class": classRateLookup, (*2)

In some special cases, we prefix instance methods with "instance". Usually only when there is a similarly named "class" method., (*3)

Composer

You can include the latest version of this package by adding "picatic/php-api": "dev-master" to your "require"., (*4)

How to Use

Get an instance of the API:, (*5)

$picaticInstance = PicaticAPI::instance();

Configure API with your key:, (*6)

$picaticInstance->setApiKey('sk_live_123');

Find an Event:, (*7)

$event = PicaticAPI::instance()->factory()->modelCreate('Event')->find(34641);

This returns an instance of Picatic_Event model. If you want to work with it as an associative array, you can call getValues to return an associative array., (*8)

$eventAssoc = $event->getValues();

Find a bunch of events:, (*9)

$events = PicaticAPI::instance()->factory()->modelCreate('Event')->findAll(array('user_id'=>6679));

Update an event:, (*10)

$event['description'] = 'This is going to rock';
$event->save();

The Versions

28/04 2015

dev-master

9999999-dev

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

28/04 2015

v1.0.12

1.0.12.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

26/04 2015

v1.0.11

1.0.11.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

20/03 2015

v1.0.10

1.0.10.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

18/03 2015

v1.0.9

1.0.9.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

25/09 2014

v1.0.8

1.0.8.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

12/09 2014

v1.0.7

1.0.7.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

07/07 2014

v1.0.6

1.0.6.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

07/07 2014

v1.0.5

1.0.5.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

02/07 2014

v1.0.4

1.0.4.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

02/07 2014

v1.0.3

1.0.3.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

30/06 2014

v1.0.2

1.0.2.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

30/06 2014

v1.0.1

1.0.1.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic

27/06 2014

v1.0.0

1.0.0.0

PHP Wrapper to access the Picatic API

  Sources   Download

MIT

The Requires

 

api event management picatic