Code Monkey home page Code Monkey logo

java-bandwidth's Introduction

Bandwidth Java SDK API

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:

   <dependency>
      <groupId>com.bandwidth.sdk</groupId>
      <artifactId>bandwidth-java-sdk</artifactId>
      <version>1.10</version>
      <scope>compile</scope>
   </dependency>

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

$ git clone [email protected]:bandwidthcom/java-bandwidth.git
$ cd java-bandwidth.git
$ 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:
    -Dcom.bandwidth.userId=my_User_Id
    -Dcom.bandwidth.apiToken=my_Api_Token
    -Dcom.bandwidth.apiSecret=my_Api_Secret
  2. Via environment variables:
    $ export BANDWIDTH_USER_ID=my_User_Id
    $ export BANDWIDTH_API_TOKEN=my_Api_Token
    $ export BANDWIDTH_API_SECRET=my_Api_Secret
  3. Directly by way of a method call on the BandwidthClient object
    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 [email protected].

java-bandwidth's People

Contributors

dpereira-daitan avatar fschmager avatar gperes-daitan avatar jsilva-daitan avatar lnunes-daitan avatar lvivo-daitan avatar rpalcolea avatar scottbarstow avatar smitchell2240 avatar vasiliypotapenko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.