Wia SDK for Android
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Wia
gradle
scripts
.codecov.yml
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle
wia-android-sdk.iml

README.md

Wia Android SDK

Build Status

Official Android SDK for Wia's API.

Wia provides a cloud infrastructure for developers building Internet of Things applications. Start conversations with your things using just a few lines of code.

Setup

Grab via Maven:

<dependency>
  <groupId>io.wia</groupId>
  <artifactId>wia-android-sdk</artifactId>
  <version>0.3.3</version>
</dependency>

or Gradle:

compile 'io.wia:wia-android-sdk:0.3.3'

The SDK requires at minimum Java 6 or Android 2.3.

Usage

This manages all your interaction with the Wia API.

Wia.initialize(new Wia.Configuration.Builder(activity.getApplicationContext())
  .appKey("YOUR_APP_KEY")
  .build()
);

To retrieve a list of Spaces.

Observable<WiaSpaceList> result = Wia.listSpaces();
result.subscribeOn(Schedulers.io())
      .observeOn(AndroidSchedulers.mainThread())
      .subscribe(response -> {
        // Spaces: response.spaces()
        // Count: response.count
      }, error -> {
        // Do something with error
      });

Documentation

For further information, check out our official API documentation.

License

Copyright (c) 2017-present, Wia Technologies Limited. All rights reserved.

This source code is licensed under the MIT-style license found in the LICENSE file in the root directory of this source tree.