Basic usage =========== .. _authenticate: Authenticate ------------ First, please refer to the :ref:`Authentication token` section to retrieve your Real-Debrid API token. Then, to authenticate, you just have to create a Token .. code-block:: php ` section. .. code-block:: php 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();