Respoke Java Library
Respoke Java is the officially supported Java library for Respoke.
With Respoke, you can add live voice, video, text and data features to your website or mobile app. Check out our Guides to get started using Respoke and Respoke Java now.
Please validate you have Java 7 or greater installed.
Installation
Install Respoke's Java Library to your project using Maven.
<dependency>
<groupId>com.digium.respoke</groupId>
<artifactId>respoke-java</artifactId>
<version>1.1.0</version>
</dependency>
Install Respoke's Java Library to your project using Gradle.
dependencies {
compile "com.digium.respoke:respoke-java:1.1.0"
}
Running the library
To use the library, sign up for a FREE Respoke account.
import com.digium.respoke.*;
Respoke client = new Respoke(new HashMap<String, String>() {{
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.
./gradlew build
To run the tests from source.
./gradlew check
To upload to the maven central respository.
./gradlew -b maven.gradle gradle -b maven.gradle uploadArchives
Then close and release the library.
Contributing
If you wish to submit an issue use the issue tracker.
- Fork it ( https://github.com/[my-github-username]/respoke-java/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -a -m 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
This source code is licensed under The MIT License.