2017 © Pedro Peláez
 

library msg-online

The official SDK for using the Marine Stores Guide API

image

momentum/msg-online

The official SDK for using the Marine Stores Guide API

  • Thursday, June 9, 2016
  • by alecritson
  • Repository
  • 0 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MSG Online SDK

This SDK provides an API in which you can query the Marine Stores Guide API., (*1)

Requirements

  • A valid developer licence and api key

Installing

Composer

You can install the bindings via Composer, (*2)

composer require momentum/msg-online

To use the bindings, use Composer's autoload:, (*3)

require_once('vendor/autoload.php');

Get account details

This will return account details for the authenticated user, (*4)

require('vendor/autoload.php');

// Initialise the MSGOnline client with your API key
\Momentum\MsgOnline\Client::setApiKey('%APIKEY%');

$user = new \Momentum\MSGOnline\User();

$user->getCurrentUser();

Get API version details

require('vendor/autoload.php');

// Initialise the MSGOnline client with your API key
\Momentum\MsgOnline\Client::setApiKey('%APIKEY%');

$api = new \Momentum\MSGOnline\API();

$api->currentVersion();


Get all products

This will return all products within the API, (*5)


require('vendor/autoload.php'); // Initialise the MSGOnline client with your API key $client = new \Momentum\MsgOnline\Client('%APIKEY%'); $products = new \Momentum\MsgOnline\Products(); // List all products $products->all(); // Search the products API $products->search($keywords, $parameters = array()); // Get a product by its IMPA Code $products->getProductByCode($code);

Available parameters for search:, (*6)

  • category_id Limit products to a single category
  • page The page number

The Versions

09/06 2016

dev-master

9999999-dev

The official SDK for using the Marine Stores Guide API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alec Ritson

msg marine stores guide

06/06 2016

0.0.19-alpha

0.0.19.0-alpha

The official SDK for using the Marine Stores Guide API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alec Ritson

msg marine stores guide

25/05 2016

0.0.18-alpha

0.0.18.0-alpha

The official SDK for using the Marine Stores Guide API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alec Ritson

msg marine stores guide