Giter Club home page Giter Club logo

real-debrid-2's Introduction

Real-Debrid API

Latest Stable Version Build Status

A simple API interface for real-debrid.com.

It allows you to communicate with Real-Debrid API and do things like unrestrict your download links or download some torrent files.

Getting started

Install

You may install the Real-Debrid API with Composer (recommended) or manually.

Via Composer (preferred method)

$ composer require vgot/real-debrid

Manually

If you don't want/have composer installed on your computer, you can manually download the library by cloning it with git.

$ git clone https://github.com/ValentinGot/real-debrid.git

System Requirements

You need PHP >= 5.6.0.

Authentication

To retrieve your token, you must authenticate to Real-Debrid and then go to the following URL:

https://real-debrid.com/apitoken

You must have a Real-Debrid premium account to access most of the API features.

Basic usage

This section provides a quick introduction to Real-Debrid API interface and some examples.

Creating a client

use \RealDebrid\RealDebrid;
use \RealDebrid\Auth\Token;

$token = new Token('MY_TOKEN');
$realDebrid = new RealDebrid($token);

Using the API

Here is some examples on how to use the Real-Debrid API.

If you want more information about the available requests, please refer to the Available requests section of the documentation.

// Retrieve user information
$userInformation = $realDebrid->user->get();

// Unrestrict a link
$link = $realDebrid->unrestrict->link('http://MY_LINK');

// Add a magnet link and start the torrent
$torrent = $realDebrid->torrents->addMagnet('magnet:MY_MAGNET_LINK');
$realDebrid->torrents->selectFiles($torrent->id);

// Retrieve torrents list
$torrentQueue = $realDebrid->torrents->get();

Documentation

The current version can be seen at valentingot.github.io/real-debrid.

License

The Real-Debrid API is released under the MIT license.

https://github.com/ValentinGot/real-debrid/blob/master/LICENSE

real-debrid-2's People

Contributors

valentingot avatar

Watchers

 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.