Coder Social home page Coder Social logo

filmweb-api's Introduction

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 - [email protected] - https://github.com/orkan

License

This project is licensed under the MIT License - see the LICENSE.md file for details

filmweb-api's People

Contributors

orkan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.