Unrestrict

All Unrestrict methods are available under \RealDebrid\RealDebrid()->unrestrict namespace.

Note

In order to use any of these methods, remember to create a RealDebrid client.

Please refer to the Creating a client section if you didn’t do it.

check()

Check if a file is downloadable on the concerned hoster.

Parameters

param. desc. type default
link * The original hoster link string  
password Password to unlock the file access hoster side string null

Return

The link information as an stdClass

{
    "host": "mega.co.nz",
    "link": "https://mega.nz/#!Zp1FFDSC!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0Assdmlfksmlfk",
    "filename": "PDF.pdf",
    "filesize": 80675,
    "supported": 1
}

Examples

<?php
$link = $realDebrid->unrestrict->check('https://mega.nz/#!Zp1FFDSC!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0Assdmlfksmlfk');

folder()

Unrestrict a hoster folder link and get individual links, returns an empty array if no links found.

Note

You must unrestrict each link one by one after retrieving it with the folder() method.

Parameters

param. desc. type default
link * The original hoster link string  

Return

The folder links as an Array

[
    "https://mega.co.nz/#!FscTGRiT!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0As",
    "https://mega.co.nz/#!pxcngb6A!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0As"
]

Examples

<?php
$link = $realDebrid->unrestrict->folder('https://mega.nz/#F!Fi90nET7a!Dg0pH7gTTG_jmrRBemM77g');

containerFile()

Decrypt a container file (RSDF, CCF, CCF3, DLC).

Note

You must unrestrict each link one by one after retrieving it with the containerFile() method.

Parameters

param. desc. type default
path * Path to the container file string  

Return

The links as an Array

[
    "https://mega.co.nz/#!FscTGRiT!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0As",
    "https://mega.co.nz/#!pxcngb6A!fo7PcxtdkyDO52x0VdNaeP_W5CiCV84iPtuOqV2y0As"
]

Examples

<?php
$link = $realDebrid->unrestrict->containerFile('C:/fakepath/container.rsdf');