Closed RoyWilliams closed 9 months ago
Document how to use the query api that includes a watchlist.
import json, sys import lasair import settings token = settings.token L = lasair.lasair_client(token) selected = 'objects.objectId, ramean, decmean, watchlist_hits.name' tables = 'objects, watchlist:1021' conditions = '' results = L.query(selected, tables, conditions, limit=10, offset=20) for result in results: objectId = result['objectId'] ra = result['ramean'] de = result['decmean'] name = result['name'] print(objectId, ra, de, name)
Document how to use JSON in queries
Document how to use the query api that includes a watchlist.