Start a new topic
Answered

Send LaMetric device ID when doing button GET request?

Is it possible to have a device ID, user ID, or some ID sent during a button event so the receiving server can identify the user?


Best Answer

Device ID is in the request headers. Below are the headers from a simple button test:


Request headers:

host: test.com

accept: */*

user-agent: LaMetric/1.0 (Linux; LaMetric OS 1.7.8; S) com.lametric.4c2913adde41fabaed18c5f22dafc222/1

x-lametric-app-instance: c7e69adff6254c60aac0d33339172343

x-lametric-app-instance-name: test

x-lametric-device-id: 124784

connection: Keep-Alive

x-forwarded-port: 443

x-forwarded-proto: https

x-forwarded-host: test.com

1 Comment

Answer

Device ID is in the request headers. Below are the headers from a simple button test:


Request headers:

host: test.com

accept: */*

user-agent: LaMetric/1.0 (Linux; LaMetric OS 1.7.8; S) com.lametric.4c2913adde41fabaed18c5f22dafc222/1

x-lametric-app-instance: c7e69adff6254c60aac0d33339172343

x-lametric-app-instance-name: test

x-lametric-device-id: 124784

connection: Keep-Alive

x-forwarded-port: 443

x-forwarded-proto: https

x-forwarded-host: test.com

Login or Signup to post a comment