2017 © Pedro Peláez
 

library guiadosoftware-sdk

This package provides a sdk to GuiaDoSoftware API

image

rajinha92/guiadosoftware-sdk

This package provides a sdk to GuiaDoSoftware API

  • Wednesday, November 29, 2017
  • by rajinha92
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 31 % Grown

The README.md

Guia do Software - SDK

Guia do Software SDK is a helpful package for integration with guiadosoftware.com., (*1)

Documentation

Initialization

$api = new Api('http://guiadosoftware.com', '<YOUR_TOKEN>');
1- Attribute Types
get [GET]
$api->attributeType()->get();
store(AttributeType) [POST]
$attributeType = new AttributeType();
$attributeType->setDescription('Test')
              ->setShortDescription('Short Test');
$api->attributeType()->store($attributeType);
attributes(AttributeTypeId) [GET]
$api->attributeType()->attributes($attributeType->getId());
delete(AttributeTypeId) [DELETE]
$api->attributeType()->delete($attributeType->getId());
2- Attributes
bootgrid(start, length, search, order) [GET]
$api->attribute()->bootgrid(0, 10, '', ['id'=>'desc']);
get([AttributeId = null]) [GET]
$api->attribute()->get(); //all
$api->attribute()->get($attribute->getId()) //specific attribute
store(Attribute) [POST]
$attribute = new Attribute();
$attribute->setDescription('Test')
          ->setShortDescription('Short Test')
          ->setAttributeTypeId($attributeType->getId())
          ->setOrder(1);
$api->attribute()->store($attribute);
update(Attribute) [PUT]
$attribute = $api->attribute()->get(1);
$attribute->setDescription('updated description');
$api->attribute()->update($attribute);
3- Companies
bootgrid(start, length, search, order) [GET]
$api->company()->bootgrid(0, 10, '', ['id'=>'desc']);
get([AttributeId = null]) [GET]
$api->company()->get(); //all
$api->company()->get($company->getId()) //specific company
store(Attribute) [POST]
$company = new Company();
$company->setName('Test')
          ->setEmail('compnay@sample.com')
          ->setSite('company.com')
          ->setPhoneNumber('(41)99999-9999');
$api->company()->store($company);
update(Attribute) [PUT]
$company = $api->company()->get(1);
$company->setName('updated name');
$api->company()->update($company);
4- Information Requests
5- Items
6- Item Category
7- Item Group
8- Item Plans
9- Media
10- Sub Category
11- Users

The Versions

29/11 2017

dev-master

9999999-dev

This package provides a sdk to GuiaDoSoftware API

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Rafael Conradn

16/10 2017

1.0.0

1.0.0.0

This package provides a sdk to GuiaDoSoftware API

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Rafael Conradn

04/10 2017

dev-develop

dev-develop

This package provides a sdk to GuiaDoSoftware API

  Sources   Download

MIT

The Requires

  • php >=7.0

 

by Rafael Conradn