/filmweb-api

Non-official API for Filmweb.pl

Primary LanguagePHPMIT LicenseMIT

repository-open-graph-template7

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.

Minimum PHP Version Latest Stable Version API Methods progress PHPUnit Tests

  • 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

  • Monolog for extended logging
  • Pimple for PHP Dependency Injection

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