Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
julianobailao authored Jan 16, 2017
1 parent 7cc991e commit c5d5ae9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,24 @@ $client = new Client('foo.bar', '8080', 'username', 'password');
$client->setBranch(2); // por padrao a filial sempre será 1

// Operações de produtos

// Paginação de produtos
$products = $client->products()->paginate(['pageSize' => 100, 'start' => 0]);

// Buscando um produto pelo id
$product = $client->products()->get(12345);

// Criando um novo produto
$product = $client->products()->create();
$product->title = 'blablabla';
$product->fieldTitle = 'field value';
$save = $product->save();

// Atualizando um produto
$product = $client->products()->update(12345);
$product->title = 'blablabla';
$update = $product->save();

// Excluindo um produto
$delete = $client->product()->delete();
```
Expand Down

0 comments on commit c5d5ae9

Please sign in to comment.