2017 © Pedro Peláez
 

library membership-api-client-php

Client library for interacting with the DCG membership API

image

diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  • Monday, April 30, 2018
  • by diningclubgroup
  • Repository
  • 8 Watchers
  • 2 Stars
  • 1,705 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 33 % Grown

The README.md

README

Running tests

make build
make test

Usage

$c = Client::init(
    "https://membership.dcg.local",
    "file://jwtRS256.key",
    42 // Consumer ID
);

// list cancellation reasons
$res = $c->cancellationReasons()->fetch();

// list card usages for a membership
$res = $c->membership($membershipId)->cardUsage()->fetch();

// fetch a specific card usage
$res = $c->membership($membershipId)->cardUsage($cardUsageId)->fetch();

// create card usage
$res = $c->membership($membershipId)->cardUsage()->create($usage);

// delete card usage
$c->membership($membershipId)->cardUsage($cardUsageId)->delete();

// list customers
$res = $c->customer()->fetch();

// fetch customer by id
$res = $c->customer($customerId)->fetch();

// delete a customer
$res = $c->customer($customerId)->delete();

Not yet implemented

// update card usage
$res = $c->membership($membershipId)->cardUsage($cardUsageId)->update();

// create a customer
$res = $c->customer()->create();

// update a customer
$res = $c->customer($id)->update();

The Versions

30/04 2018

dev-master

9999999-dev https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2018

1.0.4

1.0.4.0 https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2018

1.0.3

1.0.3.0 https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires

12/04 2018

1.0.2

1.0.2.0 https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires

11/04 2018

1.0.1

1.0.1.0 https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires

11/04 2018

dev-NAV-1556

dev-NAV-1556

  Sources   Download

The Requires

 

The Development Requires

24/01 2018

1.0.0

1.0.0.0 https://github.com/diningclubgroup/membership-api-client-php

Client library for interacting with the DCG membership API

  Sources   Download

MIT

The Requires

 

The Development Requires