Skip to content

Commit 3e54efb

Browse files
committed
fix: updated readme file
1 parent f90cdf5 commit 3e54efb

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
11
# Wildberries Statistics SDK
22

3-
Wildberries Statistics SDK - PHP SDK пакет для взаимодействия с API [Wildberries](https://images.wbstatic.net/portal/education/Kak_rabotat'_s_servisom_statistiki.pdf)
3+
Wildberries Statistics SDK - PHP SDK пакет для взаимодействия с API [Wildberries](https://images.wbstatic.net/portal/education/Kak_rabotat'_s_servisom_statistiki.pdf)
4+
5+
## Установка
6+
7+
``` bash
8+
$ composer require mike-trueh/wb-stat
9+
```
10+
11+
## Поддерживаемые методы
12+
- incomes
13+
- stocks
14+
- orders
15+
- sales
16+
- reportDetailByPeriod
17+
18+
[Официальная документация](https://images.wbstatic.net/portal/education/Kak_rabotat'_s_servisom_statistiki.pdf)
19+
20+
## Примеры
21+
22+
**incomes**
23+
``` php
24+
use WbStat\WbStatSDK;
25+
...
26+
$date = date_create_from_format('U', time());
27+
$wbStat = new WbStatSDK('YOUR-TOKEN');
28+
29+
$incomes = $wbStat->incomes($date);
30+
// Дату можно установить через функцию setDate()
31+
$incomes = $wbStat->setDate($date)->incomes();
32+
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"sdk"
99
],
1010
"license": "MIT",
11-
"version": "0.0.1.0",
11+
"version": "0.0.2",
1212
"authors": [
1313
{
1414
"name": "Mikhail Kryzhanovskiy",

0 commit comments

Comments
 (0)