This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connectez-vous à votre compte dans un navigateur | |
# Ouvrez les outils de développement, onglet réseau | |
# Chargez la page du livre que vous souhaitez télécharger | |
# Cherchez la requête GET, fichier "by" | |
# Enregistrez le contenu de la réponse dans un fichier json, et mettez le nom du fichier dans cette variable: | |
$jsonfile = "./audiobookinfo.json" | |
# Récupérez dans les url l'en-tête Authorization, et récupérez le token (tout le contenu après "Bearer") | |
$token = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Controllers; | |
using Microsoft.AspNetCore.Mvc.Rendering; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Options; |