orkan / filmweb-api
Non-official API for Filmweb.pl
v2.2
2020-06-06 13:47 UTC
Requires
- php: ^7.2
- monolog/monolog: ^2.0
- pimple/pimple: ~3.0
This package is auto-updated.
Last update: 2024-12-01 00:10:50 UTC
README
Filmweb.pl API
Non-official API for Filmweb.pl
Uwaga! Na chwilę obecną prezentowana tu metoda logowania już nie działa. W przygotowaniu jest nowa apka! Szukam beta testerów z >5000 zapisanych filmów na FW. Aktualnie dostępne są formaty json, txt i sqlite.
- Highly configurable via an external configuration file
- Advanced PHP error handling
- Supports PHP CLI mode
Installation
$ composer require orkan/filmweb-api
Basic Usage
<?php use Orkan\Filmweb\Filmweb; use Orkan\Filmweb\Api\Method\isLoggedUser; // Login to Filmweb $filmweb = new Filmweb( $login, $password ); $api = $filmweb->getApi(); // Get user info $api->call( 'isLoggedUser' ); $user = $api->getData(); $userId = $user[ isLoggedUser::USER_ID ]; // Get a list of voted films $api->call( 'getUserFilmVotes', array( $userId ) ); $films = $api->getData(); // ... print_r( $films );
Third Party Packages
About
Requirements
This API library works with PHP 7.2 or above
Author
Orkan - orkans@gmail.com - https://github.com/orkan
License
This project is licensed under the MIT License - see the LICENSE.md file for details