From 659ac6c77e2035aa5ed7d282e75c74b2c7c4bde1 Mon Sep 17 00:00:00 2001 From: shukriYusof Date: Wed, 25 Oct 2023 10:08:03 +0800 Subject: [PATCH] chore: add another example for facade --- README.md | 14 +++++++++ src/Rules/VimeoVideoIdValidationRule.php | 36 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/Rules/VimeoVideoIdValidationRule.php diff --git a/README.md b/README.md index 4c97877..e877072 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,20 @@ $vimeo->upload('/home/aaron/foo.mp4'); // Want to use a facade? Vimeo::uploadImage('/videos/123/images', '/home/aaron/bar.png', true); +Vimeo::upload($video, [ + 'name' => NAME, + 'privacy.view' => [ + 'anybody', + 'contacts', + 'disable', + 'nobody', + 'password', + 'unlisted', + 'users' + ], + 'folder_uri' => 'https://vimeo.com/manage/folders_name/folder_id' +]); +Vimeo::request('/videos/'. $value, ['per_page' => 2], 'GET'); ``` [![Build Status](https://img.shields.io/travis/vimeo/laravel/master.svg?style=flat)](https://travis-ci.org/vimeo/laravel) diff --git a/src/Rules/VimeoVideoIdValidationRule.php b/src/Rules/VimeoVideoIdValidationRule.php new file mode 100644 index 0000000..b9052ff --- /dev/null +++ b/src/Rules/VimeoVideoIdValidationRule.php @@ -0,0 +1,36 @@ +