/netatmo-swagger-api

Autogenerated SDK for the Netatmo API

Primary LanguageJava

Netatmo-Swagger-API

Autogenerated SDK for the Netatmo API

This project uses Swagger-codegen to generate SDKs for a variety of languages and frameworks.

Generation

The swagger spec file is a Swagger 2.0 json file that can be downloaded from https://raw.githubusercontent.com/cbornet/netatmo-swagger-decl/master/swagger.json.

Languages/frameworks client SDK

The languages/frameworks client libraries generated are :

  • Android & Java (Jersey1, Jersey2, okhttp-gson or retrofit)
  • iOS (Objective-C or Swift)
  • AngularJS
  • Scala
  • Akka
  • C# .Net
  • Dart
  • Flash
  • Perl
  • PHP
  • Python
  • Qt5 C++
  • Ruby
  • Tizen
  • AngularJS
  • Node.js

You can find the libs here.

Note : For the moment, only the retrofit client library has a full OAuth2 implementation. For the other libs the access token must be gotten outside of the library and added to the query params of the request.

Languages/frameworks server SDK

This can help mock a Netatmo server for integration tests

  • JAX-RS (Java)
  • Node.js (Javascript)
  • Scalatra (Scala)
  • Silex (PHP)
  • Sinatra (Ruby)
  • Spring-mvc (Java)

You can find the libs here.

Retrofit sample application

You can find a sample application showing the usage of the retrofit generated code including OAuth2 authentication here