MCPcopy Create free account
hub / github.com/OreosLab/bili / xliveBagSend

Method xliveBagSend

src/main/java/top/misec/task/GiveGift.java:151–160  ·  view source on GitHub ↗

B站直播送出背包的礼物. @return JsonObject @author srcrs @since 2020-10-13

(String requestBody)

Source from the content-addressed store, hash-verified

149 * @since 2020-10-13
150 */
151 public JsonObject xliveBagSend(String requestBody) {
152 requestBody += "&uid=" + ConfigLoader.helperConfig.getBiliVerify().getDedeUserId()
153 + "&csrf=" + ConfigLoader.helperConfig.getBiliVerify().getBiliJct()
154 + "&send_ruid=" + "0"
155 + "&storm_beat_id=" + "0"
156 + "&price=" + "0"
157 + "&platform=" + "pc"
158 + "&biz_code=" + "live";
159 return HttpUtils.doPost("https://api.live.bilibili.com/gift/v2/live/bag_send", requestBody);
160 }
161
162 /**
163 * 获取一个包含 uid 和 RooId 的 json 对象.

Callers 1

runMethod · 0.95

Calls 3

doPostMethod · 0.95
getDedeUserIdMethod · 0.80
getBiliJctMethod · 0.80

Tested by

no test coverage detected