2017 © Pedro Peláez
 

library send-regning-api

PHP client for using SendRegning API

image

arkon-event/send-regning-api

PHP client for using SendRegning API

  • Friday, September 2, 2016
  • by stadskle
  • Repository
  • 1 Watchers
  • 1 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

sendregning.no PHP API Client

This is a simple PHP HTTP wrapper for working with Sendregning.no's API. It takes care of structuring headers/authentication and allows an easy way to send messages to the API. It does not help you build JSON messages or validate them. See the SendRegning documentation for that http://sendregning.github.io/, (*1)

This client was built for arkon.no's internal integration with sendregning.no, and is used by our production system. We are not affiliated with sendregning.no in any other way., (*2)

get('/invoices/');

//or to get a single invoice
$invoice = $client->get('/invoices/14');

//use $queryParameters to send parameters
$params = ['from' => '2015-02-01','to' => '2015-06-01'];
$invoice = $client->get('/invoices/not-due',$params);

//use the callLink method to call links returned in the object
$client->callLink($invoice,ApiClient::LINK_SEND_AGAIN);

//To send a POST request without body
$client->post('/recipients/123456/available');

//To send a POST request with a body, data must be provided in format supported as input for json_encode 
$data = ['amount' => 0.25];
$client->post('/sales-ledger/123456/loss',$data);
?>

The Versions

02/09 2016

dev-master

9999999-dev https://github.com/arkon-event/send-regning-api

PHP client for using SendRegning API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ketil Stadskleiv

02/09 2016

v0.7.0

0.7.0.0 https://github.com/arkon-event/send-regning-api

PHP client for using SendRegning API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ketil Stadskleiv

27/08 2016

0.6.1

0.6.1.0 https://github.com/arkon-event/send-regning-api

PHP client for using SendRegning API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ketil Stadskleiv

26/08 2016

0.6.0

0.6.0.0 https://github.com/arkon-event/send-regning-api

PHP client for using SendRegning API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ketil Stadskleiv

23/08 2016

0.5.0

0.5.0.0 https://github.com/arkon-event/send-regning-api

PHP client for using SendRegning API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ketil Stadskleiv