2017 © Pedro PelĂĄez
 

library netvisor

Netvisor API interface

image

xi/netvisor

Netvisor API interface

  • Wednesday, June 6, 2018
  • by artur-gajewski
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2,430 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

Xi Netvisor

Netvisor API interface for PHP 5.3+., (*1)

Build Status, (*2)

Interfaces

  • None yet

Before you start hacking away

You must do the following things to get everything up and running:, (*3)

  • Get your partner ID and key from Netvisor
  • Get access to Netvisor web management page (testing environment has its own management page)
  • Activate use of external interfaces in your management page
  • Create new interface ID & key with your management page (same as above).

Usage

Configuration

Most of the configuration parameters should be obtained from Netvisor., (*4)

netvisor.host           = "https://www.netvisor.biz"         // Test server is "http://integrationdemo.netvisor.fi"
netvisor.sender         = "Testiclient"                      // Pick a name that describes your service
netvisor.customerId     = "XX_yyyy_1yyy"                     // Create manually in your Netvisor management page
netvisor.partnerId      = "Xxx_yyy"                          // Obtain from your Netvisor contact
netvisor.organizationId = "2521043-1"                        // Your company ID

netvisor.userKey        = "D953E3D10457F778B009F88B038CC3C7" // Create manually in your Netvisor management page
netvisor.partnerKey     = "3BCBFB382CE884YD6C8D4F4FC1C2AC95" // Obtain from your Netvisor contact

netvisor.language       = "FI"
netvisor.enabled        = true

Initialization

$config   = new Xi\Netvisor\Config(...);       // Use the parameters described above.
$netvisor = new Xi\Netvisor\Netvisor($config);

Constructing XML

You can instantiate a certain type of a Resource_ (e.g. Xi\Netvisor\Resource\Xml\SalesInvoice). All _Resources should extend Xi\Netvisor\Resource\Xml\Root and implement getDtdPath() to return a file path which points to a correct DTD file (used for validation)., (*5)

Resource's mandatory parameters are given in the constructor. Optional values can be set via setters., (*6)

SalesInvoice

$invoice = new Xi\Netvisor\Resource\Xml\SalesInvoice(...);

$invoiceProductLine = new Xi\Netvisor\Resource\Xml\SalesInvoiceProductLine(...);

$invoice->addSalesInvoiceProductLine($invoiceProductLine);

$netvisor->addSalesInvoice($invoice);

The Versions

06/06 2018

dev-edit-customer

dev-edit-customer

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor

25/01 2018

dev-24-salesinvoice-additionals

dev-24-salesinvoice-additionals

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor

23/01 2018

dev-add-invoicing-language

dev-add-invoicing-language

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor

22/01 2018

dev-master

9999999-dev

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor

06/05 2013

dev-refactorings

dev-refactorings

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor

06/05 2013

dev-composer

dev-composer

Netvisor API interface

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Henri Vesala
by Panu LeppÀniemi
by Petri Koivula

api netvisor