2017 © Pedro Peláez
 

library visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V3 API

image

mikkelson/visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V3 API

  • Monday, December 11, 2017
  • by mikkelson
  • Repository
  • 2 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Visualsoft PHP SOAP Bindings

The purpose of this library is to aid communication with Visualsoft's SOAP API., (*1)

This library currently supports version 3 of the Visualsoft WSDL., (*2)

Installation

To install with Composer:, (*3)

composer require mikkelson/visualsoft-php-soap-api

After the package installation completes, use the autoloader provided by Composer., (*4)

require __DIR__ . '/vendor/autoload.php';

Usage & Setup

Load the package namespace., (*5)

use Mikkelson\Visualsoft;

Before making useful calls to Visualsoft, you must first set the client., (*6)


$credentials = [ 'client_id' => 'YOUR VISUALSOFT CLIENT ID', 'username' => 'YOUR VISUALSOFT API USERNAME', 'password' => 'YOUR VISUALSOFT API PASSWORD', 'domain' => 'YOUR VISUALSOFT DOMAIN NAME' ]; $vs = new VisualSoft(); $vs->setClient($credentials);

Hello World

This call returns the string Hello World if successful, useful to test your API connectivity., (*7)

$vs->helloWorld();

Get Orders By Date

Return a list of all orders from a specified date., (*8)

$date = new DateTime();
$vs->getOrdersByDate($date);

Get Order By ID

Returns order data for a specified order using the order id., (*9)

$order_id = 1;
$vs->getOrderById($order_id);

Get Order By Reference

Returns order data for a specified order using the order reference., (*10)

$order_ref = 'SO1000';
$vs->getOrderByRef($order_ref);

Update Order Status

Updates the status of an order., (*11)

$order_id = 1;
$status = 'Order Dispatched'
$tracking = 123456; //Order tracking number
$comments = 'Order dispatched'; // Order comment

//the 5th parameter is optional. Defaults to true. When true, VisualSoft will email the customer informing of the update to the order.
$email_customer = false; 

$vs->updateOrderStatus($order_id, $status, $tracking, $comments, $email_customer);

Get New Orders

Returns all orders that have not yet been marked as downloaded., (*12)

Pass in true/false to have the new orders automatically marked as Downloaded. Defaults to false., (*13)

$order_ref = 'SO1000';
$vs->getNewOrders(true);

The Versions

11/12 2017

dev-master

9999999-dev https://github.com/mikkelson/visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V3 API

  Sources   Download

MIT

api php soap visualsoft

11/12 2017

1.2.0

1.2.0.0 https://github.com/mikkelson/visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V3 API

  Sources   Download

MIT

api php soap visualsoft

21/07 2016

1.0.1

1.0.1.0 https://github.com/mikkelson/visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V2 API

  Sources   Download

MIT

api php soap visualsoft

20/07 2016

1.0.0

1.0.0.0 https://github.com/mikkelson/visualsoft-php-soap-api

PHP SOAP bindings for the Visualsoft V2 API

  Sources   Download

MIT

api php soap visualsoft