Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dilowagner/skyhub-client
Client PHP para consumo da API SkyHub
https://github.com/dilowagner/skyhub-client
Last synced: 2 months ago
JSON representation
Client PHP para consumo da API SkyHub
- Host: GitHub
- URL: https://github.com/dilowagner/skyhub-client
- Owner: dilowagner
- License: mit
- Created: 2018-06-06T02:20:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T01:18:50.000Z (over 6 years ago)
- Last Synced: 2024-09-19T18:37:48.839Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 72.3 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# skyhub-client
Client para consumo da API SkyHub[![Build Status](https://travis-ci.org/dilowagner/skyhub-client.svg?branch=master&style=flat-square)](https://travis-ci.org/dilowagner/skyhub-client.svg?branch=master)
[![Packagist](https://img.shields.io/packagist/v/dw/skyhub-client.svg?style=flat-square)](https://github.com/dilowagner/skyhub-client)
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/dilowagner/skyhub-client/blob/master/LICENSE)> ### Requisitos
- PHP 7.1+
- Autoloader compatível com a PSR-4> ### Funcionalidades
- [X] Atributos
- [X] Categorias
- [X] Fretes
- [X] Pedidos
- [X] Postagens
- [X] Produtos
- [X] Perguntas
- [X] Filas
- [X] Sistemas de Vendas
- [X] Status do Pedido
- [X] Tipo de Status
- [X] Sincronizacao dos Erros
- [X] Variacoes> ### Dependências
- PHP-DI: 6.0.2
> ### Instalação
Para instalar a biblioteca basta adicioná-la via [composer](https://getcomposer.org/download/)
```composer
composer require dw/skyhub-client
```Ou via composer.json
```json
{
"dw/skyhub-client": "1.*"
}
```> ### Testes
Podemos usar o composer para rodar os testes:
```composer
composer test
```
ou utilizando o .phar```composer
php composer.phar test
```> ### Utilização
Neste [link](https://skyhub.gelato.io/docs/versions/1.0/sobre-a-api-skyhub) você encontra mais informaçoes de como utilizar a API v1.0
Apos realizar o cadastro na plataforma, você receberá a API-KEY e o ACCOUNT-MANAGER-KEY para realizar a integracao.
A seguir um pequeno exemplo de como criar/enviar um Produto usando esta biblioteca.
```php
'foo',
'name' => 'foo',
'description' => 'foo',
'status' => 'enabled',
'qty' => 0,
'price' => 99.99,
'promotional_price' => 0,
'cost' => 0,
'weight' => 0,
'height' => 0,
'width' => 0,
'length' => 0,
'brand' => 'foo',
'ean' => 'foo',
'nbm' => 'foo',
'categories' => [
0 => [
'code' => 'foo',
'name' => 'foo',
],
],
'images' => [
0 => 'http://url.produto.com/img.jpg'
],
'specifications' => [
0 => [
'key' => 'foo',
'value' => 'foo',
],
],
'variations' => [
0 => [
'sku' => 'foo',
'qty' => 0,
'ean' => 'foo',
'images' => [
0 => 'http://url.produto.com/img.jpg'
],
'specifications' => [
0 => [
'key' => 'foo',
'value' => 'foo',
],
],
],
],
'variation_attributes' => [
0 => 'foo',
1 => 'foo',
2 => 'foo',
],
];$response = $client->product->create($data);
var_dump($response);
```> ### Contribua!
Quer contribuir? [clique aqui](https://github.com/dilowagner/skyhub-client/blob/master/CONTRIBUTING.md)
> ### Licença
Esta biblioteca segue os termos de uso da [MIT](https://github.com/dilowagner/skyhub-client/blob/master/LICENSE)