hoyolabCheckIn function

Future hoyolabCheckIn({
  1. bool chinese = false,
})

Implementation

Future hoyolabCheckIn({bool chinese = false}) {
  var url = 'https://sg-hk4e-api.hoyolab.com/event/sol/';
  var actId = 'e202102251931481';
  if (chinese) {
    url = 'https://api-takumi.mihoyo.com/event/bbs_sign_reward/';
    actId = 'e202009291139501';
  }

  return fetchEndpoint('${url}sign', chinese: chinese, kwargs: {
    'method': 'POST',
    'params': {'act_id': actId}
  });
}