Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.7 KB

File metadata and controls

37 lines (27 loc) · 1.7 KB

Client application template based onto Sinch Java SDK

This directory contains a client application based onto Sinch SDK java

Prerequisites

  • JDK 8 or later (Sinch SDK Java is requiring java 8 only but client application can use latest available version)
  • Maven
  • Sinch account

Configuration

Edit config.properties file to set credentials to be used to configure the SinchClient.

  • To use Numbers, SMS or Conversation, you need to fill the following settings with your Sinch account information:
    • SINCH_PROJECT_ID=Your Sinch Project ID
    • SINCH_KEY_ID=Your Sinch Key ID
    • SINCH_KEY_SECRET=Your Sinch Key Secret
  • To use Verification or Voice you will need application credentials and fill config.properties dedicated section.
  • To use SMS with servicePlanId, you will need service plan ID credentials and fill config.properties dedicated section.
  • SMS and Conversation are requiring to define the region to be used to send requests. You can set it in config.properties file with the dedicated REGION property.

Usage

  1. Edit configuration file See above for Configuration paragraph

  2. Application generation

    Application generation command:

    mvn package
  3. Execute application

    java -jar target/sinch-java-sdk-client-application-1.0-SNAPSHOT-jar-with-dependencies.jar