项目地址
代码写的很烂,欢迎大佬pr!
这是一个newBing API的Java实现
Commit activity
目前请先将 byPassCN 设置成 false How to use it <dependency> <groupId>io.github.heartalborada-del</groupId> <artifactId>newBingAPI</artifactId> <version>latest</version> </dependency> import io.github.heartalborada_del.newBingAPI.interfaces.Callback; import com.google.gson.JsonObject; public class Main { public static void main(String[] args) { new Chat( "Your cookies", false ).newChat().newQuestion("Your question", new Callback() { @Override public void onSuccess(JsonObject rawData) { //TODO } @Override public void onFailure(JsonObject rawData, String cause) { //TODO } @Override public void onUpdate(JsonObject rawData){ //TODO } }); } } VersionMaven central version