taliox / zulip-java-rest Goto Github PK
View Code? Open in Web Editor NEWA thin and easy to use Java library to access the Zulip REST API
License: MIT License
A thin and easy to use Java library to access the Zulip REST API
License: MIT License
Hello,
Can you kindly unlock the library from 1.0.1-SNAPSHOT and release it?
It would be handy to have the ability to directly configure the API client with a generated zuliprc file.
In the readme, shouldn't the line
ZulipRestExecutor = new ZulipRestExecutor("[email protected]", "apikey","https://zulip.example.com/");
have the variable name executor
so it would actually be
ZulipRestExecutor executor = new ZulipRestExecutor("[email protected]", "apikey","https://zulip.example.com/");
?
Also, is there an import needed?
When I compile this code on https://repl.it/languages/java10 after installing the io.taliox:zulip-java-rest package it gives this terminal output.
Code:
class Main {
public static void main(String[] args) {
ZulipRestExecutor executor = new ZulipRestExecutor("[email protected]", "apikey","https://zulip.example.com/");
}
}
Terminal output:
javac -classpath .:/run_dir/junit-4.12.jar:target/dependency/* -d . Main.java
Main.java:3: error: cannot find symbol
ZulipRestExecutor executor = new ZulipRestExecutor("[email protected]", "apikey","https://z
ulip.example.com/");
^
symbol: class ZulipRestExecutor
location: class Main
Main.java:3: error: cannot find symbol
ZulipRestExecutor executor = new ZulipRestExecutor("[email protected]", "apikey","https://z
ulip.example.com/");
^
symbol: class ZulipRestExecutor
location: class Main
2 errors
compiler exit status 1
Hey , is there a delete Stream and rename stream function because i can't seem to find it .
Also im struggling a bit like i want to subscribe a user to a stream and i am trying this code
PostSubscription subscribe = new PostSubscription("[{"name":"A new Stream"}]");
subscribe.setInvite_only(true);
subscribe.setPrincipals("[email protected]");
executor.executeCall(subscribe);
And im getting an error , would u mind help me out? Thanks in advance.
It would be handy to be able to set the user status with this API implementation.
for (int i = 1; i < 6; i++) {
ZulipRestExecutor executor = new ZulipRestExecutor(user, apikey,zuliphost);
postMessage.setTo("user0" + i + "@myzulip.com");
postMessage.setContent("loop " + i + "hello , current time is " + getNowTime());
String response2 = executor.executeCall(postMessage);
System.out.println(response2);
}
will work, but it not reuse the HttpClient instance
ZulipRestExecutor executor = new ZulipRestExecutor(user, apikey,zuliphost);
for (int i = 1; i < 6; i++) {
postMessage.setTo("user0" + i + "@myzulip.com");
postMessage.setContent("loop " + i + "hello , current time is " + getNowTime());
String response2 = executor.executeCall(postMessage);
System.out.println(response2);
}
this will not work, it stuck after loop 2 times
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.