Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
silentdeath76 committed Nov 26, 2022
1 parent a835ed7 commit 2fd7cb2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ $token = \yandex\YandexAPI::getToken($clientID, $clientSecret, 'Полученн

<br>

##### Работа с диском
### Работа с диском

```php
$disc = \yandex\YandexAPI::disc($token->getAccessToken());
$disc->info(); // вернет информацию об аккаунте
$disc->info(); // вернет информацию об аккаунте, занятое\свободное место на диске
$disc->getFiles(0, 100); // вернет 100 первых записей
$disc->upload(\php\io\File::of("path/to/file.txt"), "path/in/our/disc");
```


### Подключение пакета через jphp
```
jppm add jphp-yandex-disc@git+https://github.com/silentdeath76/jphp-yandex-disc
```

0 comments on commit 2fd7cb2

Please sign in to comment.