For AI agents: visit https://lono.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
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 
  1. Javascript API

LonoClient.authorize(req, res)

This piece of express middleware auto-redirects a user to the authorization url needed for the user to give your app rights to access their Lono.

alert(test('123')); // should return '123!'

Updated less than a minute ago


Updated less than a minute ago