From 9f53d6af9c96f7868f45f4af411b4ddf0d64ac97 Mon Sep 17 00:00:00 2001 From: Vitaly Gashkov Date: Sat, 23 Aug 2025 21:38:36 +0500 Subject: [PATCH] update README --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index e4fe7d2..776e554 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,27 @@ npm i crextractor ## Usage +### Fetching already extracted secrets + +```js +async function main() { + const url = 'https://raw.githubusercontent.com/vitalygashkov/crextractor/refs/heads/main/secrets.json'; + const data = await fetch(url).then((response) => response.json()); + + // You can use the extracted secrets to obtain access tokens for Crunchyroll APIs + const response = await fetch('https://beta-api.crunchyroll.com/auth/v1/token', { + headers: { + Authorization: data.authorization, + // ... + }, + method: 'POST', + body: JSON.stringify({ + // ... + }), + }); +} +``` + #### Library ```js