You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,24 @@
1
1
# zulip-java-rest
2
2
A thin and easy to use Java library to access the [Zulip API](https://zulipchat.com/api/).
3
-
This library covers every API call of the Zulip API except for real-time events but is in it's core really simple.
3
+
This library covers every API call of the Zulip REST API except for real-time events. It is aimed at being as simple as possible.
4
4
# How to use
5
5
## Setup and usage
6
+
7
+
### JAR
8
+
Simply build this project with `mvn package` and you can use the .jar in your classpath.
9
+
6
10
### Maven
7
-
Just add the following dependency to your pom.xml or the JAR of this repository to your projects build path.
11
+
Just add the following dependency to your pom.xml.
8
12
9
13
```xml
10
14
<dependency>
11
-
<groupId>io.taliox</groupId>
12
-
<artifactId>zulip-java-rest</artifactId>
13
-
<version>0.0.1-SNAPSHOT</version>
15
+
<groupId>io.taliox</groupId>
16
+
<artifactId>zulip-java-rest</artifactId>
17
+
<version>0.0.2</version>
14
18
</dependency>
15
19
```
16
20
### Where do I get the API key for authentication?
17
-
You can either use a bot or a user account to communicate with the API. To find out the needed token please see the official [Zulip documentation](https://zulipchat.com/api/api-keys).
21
+
You can either use a bot or a user account to communicate with the API. To find out the needed token or how to create a bot please see the official [Zulip documentation](https://zulipchat.com/api/api-keys).
18
22
19
23
### At first Create the ZulipRestExecutor to communicate with the Zulip API
20
24
The core of this library is the `ZulipRestExecutor` it is responsible for performing HTTP calls.
@@ -27,14 +31,14 @@ To change credentials after instantiating the ZulipRestExecutor it is recommende
27
31
28
32
### How to use the ZulipRestExecutor?
29
33
To perform an API call you should use the `executeCall(ZulipRestAPICall call)` method of the newly created object.
30
-
All API calls are packed inside the library as instantiatable objects which be executed by the `ZulipRestExecutor`.
31
-
The naming convention of all call objects is like the following: `HTTP request mehtod + object of action`.
34
+
All API calls are packed inside the library as instantiatable objects which can be executed by the `ZulipRestExecutor`.
35
+
The naming convention of all call objects is like the following: `HTTP request method + object of action`.
32
36
33
37
So for instance if we want to send a message to someone on our Zulip server we need to create a `PostMessage` object to pass it into our executeCall method.
Please always refer to [official Zulip API documentation](https://zulipchat.com/api/) in case you are not sure what structure the parameters of an call object need to be.
108
-
A full list of API calls, return types and parameters to perform calls can be found there.
112
+
Please always refer to the [official Zulip API documentation](https://zulipchat.com/api/) in case you are not sure what structure the parameters of an call object need to be.
113
+
A full list of API calls, return types and parameters to perform calls can be found over there.
109
114
110
115
We are working on more examples and tests within the library so you can try it out right of the box.
111
116
112
117
## Contributing
113
-
Thanks for your interest! Do not hesitate to open an issue if you have a question, feedback or found something that`s not supposed to be working like it should.
114
-
Pull requests for improvements of the library are also highly appriciated.
118
+
Thanks for your interest! Do not hesitate to open an issue if you have a question, feedback or found something that is not working like it should.
119
+
120
+
Pull requests for improvements of the library or it's documentation are also highly appreciated.
115
121
116
122
## Licenses
117
123
This library and its content is released under the [MIT License](https://choosealicense.com/licenses/mit/).
0 commit comments