项目作者: Bandwidth

项目描述 :
Java SDK for use with the Bandwidth Voice and Messaging APIs
高级语言: Java
项目地址: git://github.com/Bandwidth/java-bandwidth.git
创建时间: 2014-08-01T13:19:48Z
项目社区:https://github.com/Bandwidth/java-bandwidth

开源协议:MIT License

下载


Bandwidth Java SDK API

Deprecation Notice

This project is deprecated. Please go to https://github.com/Bandwidth/java-sdk

Java SDK for Bandwidth’s App Platform

Documentation

[More Coming Soon]

Javadocs

Code Examples

Installing

Bandwidth Java SDK API is now using Maven. At present the jars are available from a public maven repository.

Use the following dependency in your project:

  1. <dependency>
  2. <groupId>com.bandwidth.sdk</groupId>
  3. <artifactId>bandwidth-java-sdk</artifactId>
  4. <version>1.10</version>
  5. <scope>compile</scope>
  6. </dependency>

If you want to compile it yourself, here’s how:

  1. $ git clone git@github.com:bandwidthcom/java-bandwidth.git
  2. $ cd java-bandwidth.git
  3. $ mvn install

Set credentials

There are 3 ways to set these credentials:

  1. Via Java VM System Properties, set as -D arguments on the VM command line:
    1. -Dcom.bandwidth.userId=my_User_Id
    2. -Dcom.bandwidth.apiToken=my_Api_Token
    3. -Dcom.bandwidth.apiSecret=my_Api_Secret
  2. Via environment variables:
    1. $ export BANDWIDTH_USER_ID=my_User_Id
    2. $ export BANDWIDTH_API_TOKEN=my_Api_Token
    3. $ export BANDWIDTH_API_SECRET=my_Api_Secret
  3. Directly by way of a method call on the BandwidthClient object
    1. BandwidthClient.getInstance().setCredentials(my_User_Id, my_Api_Token, my_Api_Secret)

Notice: if credentials are not set explicitly, the sdk will first look for VM properties.
If those are not present, it will look for environments vars.
To override VM properties and env vars, use client’s method as described on 3th option.

Bugs/Issues

Please open an issue in this repository and we’ll handle it directly. If you have any questions please contact us at openapi@bandwidth.com.