Git Product home page Git Product logo

opensubtitle-api's Introduction

Introduction

This is an API implemented in java using XML-RPC protocol.This protocol is implemented as a client which requests for resources on server.The Opensubtitle documentation for creating API can be found here

Download dependency jar

Implementation

XML-RPC is the simplest XML-based protocol for exchanging information between computers across a network.RPC stands for Remote Procedure Call. As its name indicates, it is a mechanism to call a procedure or a function available on a remote computer. RPC is a much older technology than the Web. Effectively, RPC gives developers a mechanism for defining interfaces that can be called over a network. These interfaces can be as simple as a single function call or as complex as a large API.

Things you can do using XML-RPC

  • XML-RPC is among the simplest and most foolproof web service approaches that makes it easy for computers to call procedures on other computers.

  • XML-RPC permits programs to make function or procedure calls across a network.

  • XML-RPC uses the HTTP protocol to pass information from a client computer to a server computer.

  • XML-RPC uses a small XML vocabulary to describe the nature of requests and responses.

  • XML-RPC client specifies a procedure name and parameters in the XML request, and the server returns either a fault or a response in the XML response.

  • XML-RPC parameters are a simple list of types and content - structs and arrays are the most complex types available.

  • XML-RPC has no notion of objects and no mechanism for including information that uses other XML vocabulary.

  • With XML-RPC and web services, however, the Web becomes a collection of procedural connections where computers exchange information along tightly bound paths.

Why most of services provides API using XML-RPC?

If you need to integrate multiple computing environments, but don't need to share complex data structures directly, you will find that XML-RPC lets you establish communications quickly and easily.Even if you work within a single environment, you may find that the RPC approach makes it easy to connect programs that have different data models or processing expectations and that it can provide easy access to reusable logic.

How to use?

First create instance of OpenSubtitle class

    OpenSubtitle openSubtitle=new OpenSubtitle();
    openSubtitle.login();
    
//  openSubtitle.ServerInfo();
//  openSubtitle.getSubLanguages();

    openSubtitle.getMovieSubsByName("now you see me","20","eng");
    
//  openSubtitle.getTvSeriesSubs("game of thrones","1","1","10","eng");
//  openSubtitle.Search("/home/sachin/Vuze Downloads/Minions.2015.720p.BRRip.850MB.MkvCage.mkv");

    openSubtitle.logOut();

Different methods are defined in OpenSubtitle class for accessing subtitles based on Moviename or Tv series name.

opensubtitle-api's People

Contributors

sacoo7 avatar sachin7676 avatar

Stargazers

MOHAMMAD SHIBILY.M avatar Evgeniy avatar Moustafa Essam avatar DavePA avatar Karzan Kamal avatar  avatar Mürüvvet Hasanbaşoğlu avatar piyush wani  avatar

Watchers

James Cloos avatar  avatar Evgeniy avatar

Forkers

gholker

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.