OMX SDK
Create GeoTrigger
1import { OMXClient } from 'omx-sdk'
2
3const omx = new OMXClient({ clientId: "abc123", secretKey: "secretXYZ" })
4
5await omx.geoTrigger.createGeoTrigger({
6 name: "Coffee Shop Promo",
7 location: { lat: 43.6532, lng: -79.3832 },
8 radius: 100,
9 onEnter: {
10 notification: {
11 title: "Welcome!",
12 body: "Get 30% off your order!"
13 }
14 }
15})