ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/timbrature/NH-HR-test/vendor/ovh/ovh
/
home
mhhtmff
timbrature
NH-HR-test
vendor
ovh
ovh
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
.github
-
chmod
Open
Rename
Delete
examples
-
chmod
Open
Rename
Delete
img
-
chmod
Open
Rename
Delete
scripts
-
chmod
Open
Rename
Delete
src
-
chmod
Open
Rename
Delete
tests
-
chmod
Open
Rename
Delete
.gitignore
117 B
chmod
View
DL
Edit
Rename
Delete
codecov.yml
445 B
chmod
View
DL
Edit
Rename
Delete
CODEOWNERS
52 B
chmod
View
DL
Edit
Rename
Delete
composer.json
1.09 MB
chmod
View
DL
Edit
Rename
Delete
CONTRIBUTING.rst
3.35 MB
chmod
View
DL
Edit
Rename
Delete
LICENSE
1.46 MB
chmod
View
DL
Edit
Rename
Delete
MIGRATION.rst
2.49 MB
chmod
View
DL
Edit
Rename
Delete
phpcs.xml
468 B
chmod
View
DL
Edit
Rename
Delete
phpdoc.dist.xml
554 B
chmod
View
DL
Edit
Rename
Delete
phpunit.xml.dist
804 B
chmod
View
DL
Edit
Rename
Delete
README.md
10.57 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/timbrature/NH-HR-test/vendor/ovh/ovh/MIGRATION.rst
############################ Migrate from legacy wrappers ############################ This guide specifically targets developers comming from the legacy wrappers previously distributed on https://api.ovh.com/g934.first_step_with_api. It highligts the main evolutions between these 2 major version as well as some tips to help with the migration. If you have any further questions, feel free to drop a mail on api@ml.ovh.net (api-subscribe@ml.ovh.net to subscribe). Installation ============ Legacy wrappers were distributed as zip files for direct integration into final projects. This new version is fully integrated with Composer standard distribution channels. Recommended way to add ``php-ovh`` to a project: add ``ovh`` to a ``composer.json`` file at the root of the project. .. code:: # file: composer.json "require": { "ovh/ovh": "dev-master" } To refresh the dependencies, just run: .. code:: bash composer install Usage ===== Import and the client class --------------------------- The new PHP wrapper use composer to manage project dependencies. If you want to use the client class, usage of namespace is more confortable with PSR-4 autoloading system. You can find more informations about `autoloading <https://getcomposer.org/doc/01-basic-usage.md#autoloading>`_ Legacy method: ************** .. code:: php require('OvhApi/OvhApi.php'); New method: *********** .. code:: php use \Ovh\Api; Instanciate a new client ------------------------ Legacy method: ************** .. code:: php $client = OvhApi(OVH_API_EU, 'app key', 'app secret', 'consumer key'); New method: *********** .. code:: php $client = Client('app key', 'app secret', 'ovh-eu', 'consumer key'); Similarly, ``OVH_API_CA`` has been replaced by ``'ovh-ca'``. Use the client -------------- Legacy method: ************** .. code:: php # API helpers $content = (object) array("param_1" => "value_1", "param_2" => "value_2"); $data = $client->get('/my/method?filter_1=value_1&filter_2=value_2'); $data = $client->post('/my/method', $content); $data = $client->put('/my/method', $content); $data = $client->delete('/my/method'); New method: *********** .. code:: php # API helpers $content = (object) array("param_1" => "value_1", "param_2" => "value_2"); $data = $client->get('/my/method?filter_1=value_1&filter_2=value_2'); $data = $client->post('/my/method', $content); $data = $client->put('/my/method', $content); $data = $client->delete('/my/method');
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply