Skip to content

Commit

Permalink
added HoyoClient to got import
Browse files Browse the repository at this point in the history
  • Loading branch information
torikushiii committed Jul 19, 2024
1 parent f402a0f commit ff21903
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions gots/hoyo-client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const definition = {
name: "HoyoClient",
optionsType: "object",
options: {
headers: {
Referer: "https://act.hoyolab.com",
"x-rpc-client_type": 5,
"x-rpc-language": "en-us",
"x-rpc-app_version": "2.54.0",
"x-requested-with": "com.mihoyo.hoyolab",
"User-Agent": "Mozilla/5.0 (Linux; Android 13; Pixel 5 Build/TQ3A.230901.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/118.0.0.0 Mobile Safari/537.36 miHoYoBBSOversea/2.54.0"
}
},
parent: "Global"
};

module.exports = definition;
2 changes: 2 additions & 0 deletions gots/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
const API = require("./api/index.js");
const FakeAgent = require("./fake-agent/index.js");
const Global = require("./global/index.js");
const HoyoClient = require("./hoyo-client/index.js");
const HoyoLab = require("./hoyolab/index.js");
const MiHoYo = require("./mihoyo/index.js");

const definitions = [
API,
FakeAgent,
Global,
HoyoClient,
HoyoLab,
MiHoYo
];
Expand Down

0 comments on commit ff21903

Please sign in to comment.