https://github.com/respoke/respoke-java
Java serverside library for the Respoke REST API
https://github.com/respoke/respoke-java
Last synced: about 1 year ago
JSON representation
Java serverside library for the Respoke REST API
- Host: GitHub
- URL: https://github.com/respoke/respoke-java
- Owner: respoke
- Created: 2015-06-10T15:30:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T20:36:43.000Z (almost 11 years ago)
- Last Synced: 2025-03-25T08:38:14.929Z (over 1 year ago)
- Language: Java
- Size: 239 KB
- Stars: 7
- Watchers: 13
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Respoke Java Library
[](https://travis-ci.org/respoke/respoke-java)
Respoke Java is the officially supported Java library for [Respoke](https://respoke.io).
With Respoke, you can add live voice, video, text and data features to your website or mobile app. Check out our
[Guides](https://docs.respoke.io/server/java/getting-started.html) to get started using Respoke and Respoke Java now.
Please validate you have Java 7 or greater installed.
## Installation
Install [Respoke's Java Library](http://search.maven.org/#search%7Cga%7C1%7Crespoke) to your project using
[Maven](http://search.maven.org/).
```
com.digium.respoke
respoke-java
1.1.0
```
Install Respoke's Java Library to your project using [Gradle](https://gradle.org/).
```
dependencies {
compile "com.digium.respoke:respoke-java:1.1.0"
}
```
## Running the library
To use the library, sign up for a FREE [Respoke account](https://portal.respoke.io/#/signup).
```java
import com.digium.respoke.*;
Respoke client = new Respoke(new HashMap() {{
put("appId", "APP_ID");
put("appSecret","APP_SECRET");
put("roleId", "ROLE_ID");
put("endpointId", "USER_NAME");
}});
String tokenId = client.getTokenId();
```
Return this `tokenId` to your front-end and pass it to the `token` property when connecting to Respoke.
## Building from source & Running Tests
To build the project from source.
```sh
./gradlew build
```
To run the tests from source.
```sh
./gradlew check
```
To upload to the maven central respository.
```sh
./gradlew -b maven.gradle gradle -b maven.gradle uploadArchives
```
Then close and [release the library](http://central.sonatype.org/pages/releasing-the-deployment.html).
## Contributing
If you wish to submit an issue use the [issue tracker].
[issue tracker]: https://github.com/respoke/respoke-java/issues
1. Fork it ( https://github.com/[my-github-username]/respoke-java/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -a -m 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## License
This source code is licensed under The MIT License.