2017 © Pedro Peláez
 

library codelocks-api

Basic wrapper for the Codelocks Netcode API

image

drinkynet/codelocks-api

Basic wrapper for the Codelocks Netcode API

  • Wednesday, July 18, 2018
  • by drinkynet
  • Repository
  • 3 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 14 % Grown

The README.md

Codelocks API Wrapper

Lightweight PHP wrapper for the Codelocks Connect API., (*1)

This wrapper update is aimed at being backwards compatible with the previous version making it a drop-in replacement to connect to the new API with no breaking changes to method calls or structure., (*2)

Installing

Install via composer:, (*3)

composer require drinkynet/codelocks-api

Examples

Create an instance of the Codelocks class with your API key and default Access Key, (*4)

$codelocks = new \drinkynet\Codelocks\Codelocks($key, $accessKey);

$netcode = $codelocks->netcode();

Get a netcode for lock 0000000000000000000000000000001a that is valid now:, (*5)

$netcode->lock('0000000000000000000000000000001a')->get();

Get a netcode for lock 0000000000000000000000000000001a that is valid for a specific time and date:, (*6)

$code = $netcode->lock('0000000000000000000000000000001a')
    ->date(new \DateTime('2016-09-23'))
    ->hour(9)
    ->duration(1)
    ->get();

Note: You can get the lock ID for each lock from the lock list returned by the ->lock() method call, (*7)

Get an initialisation sequence for a lock model:, (*8)

$codelocks = new \drinkynet\Codelocks\Codelocks($key, $accessKey);

// Init sequence data with default master code
$init = $codelocks->init()
    ->lockModel('K3CONNECT')
    ->get();

// Init sequence data with custom master code
$init = $codelocks->init()
    ->lockModel('K3CONNECT')
    ->masterCode('12345678')
    ->get();

Get a list of locks associated with the API credentials:, (*9)

$codelocks = new \drinkynet\Codelocks\Codelocks($key, $accessKey);

// Uses the accessKey set earlier
$locks = $codelocks->lock()->get();

// Use a different accessKey associated with the API key
$locks $codelocks->lock('abcde12345')->get();

Previous versions

If you are using the "Codelocks Customer API" install the 6.0.1 version of this wrapper via composer., (*10)

Note: API versions prior to this are nolonger available online., (*11)

The Versions

18/07 2018

dev-master

9999999-dev https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

18/07 2018

5.0.1

5.0.1.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

18/07 2018

v5.x-dev

5.9999999.9999999.9999999-dev https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

18/07 2018

5.0.0

5.0.0.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

14/04 2017

dev-feature/endpoint-versions

dev-feature/endpoint-versions https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

02/06 2016

2.0.1

2.0.1.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

31/05 2016

2.0.0

2.0.0.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

14/04 2016

1.0.1

1.0.1.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

11/04 2016

1.0.0

1.0.0.0 https://github.com/drinkynet/codelocks-api/

Basic wrapper for the Codelocks Netcode API v3

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires