getcharacter method

Future<Response> getcharacter(
  1. String entry_page_id
)

Implementation

Future<http.Response> getcharacter(String entry_page_id) {
  return http.get(
      Uri.parse(
        'https://sg-wiki-api-static.hoyolab.com/hoyowiki/genshin/wapi/entry_page?entry_page_id=$entry_page_id',
      ),
      headers: {
        'GET':
            '/hoyowiki/genshin/wapi/entry_page?entry_page_id=$entry_page_id HTTP/2',
        'Host': 'sg-wiki-api-static.hoyolab.com',
        'User-Agent':
            'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0',
        'Accept': 'application/json, text/plain, */*',
        'Accept-Language': 'ja,en-US;q=0.7,en;q=0.3',
        'Accept-Encoding': 'gzip, deflate, br',
        'x-rpc-language': 'ja-jp',
        'x-rpc-wiki_app': 'genshin',
        'Origin': 'https://wiki.hoyolab.com',
        'Connection': 'keep-alive',
        'Referer': 'https://wiki.hoyolab.com/',
        'Sec-Fetch-Dest': 'empty',
        'Sec-Fetch-Mode': 'cors',
        'Sec-Fetch-Site': 'same-site',
      });
}