Jump to Content
LonoSupportCommunityAPI Home
API Reference
v1.0

SupportCommunityAPI HomeLog InLono
API Reference
Log In
v1.0API Reference

Getting Started

  • Getting Started with the Lono Public API
  • Getting Started with Lono: Single User Application
  • Getting Started with Lono: Production Application

Documentation

  • Turn On a Zonepost
  • Turn Off a Zonepost
  • Get Zone State (which zone is on)get
  • Zone Informationget
  • Update Zonesput
  • Detect Zonespost
  • Lono Informationget

Javascript API

  • Getting Started in Javascript
  • LonoClient.authorize_url()
  • LonoClient.authorize(req, res)
  • LonoClient.callback(req, res)
  • LonoClient.get_device(device_id)

Ruby API

  • Getting Started in Ruby
  • Lono
  • Lono::AuthUrl
  • Lono::SessionToken
  • Lono::Device

Python API

  • Getting Started in Python
  • LonoClient.authorize_url(redirect_on_success)
  • LonoClient.save_token(auth_token)
  • LonoClient.get_device(device_id)
Powered by 

Lono::AuthUrl

Lono::AuthUrl.fetch(redirect_on_success)

This call returns the authorization url needed for the user to give your app rights to access their Lono.

Lono::AuthUrl.fetch "http://lono.io"
# => http://make.lono.io/dialog/authorize?response_type=code&client_id=client_id&redirect_uri=http://lono.io&scope=write