Query change logs

Api Description

POST https://rtk.geodnet.com/api/v3/user/logs

Request Body

Parameter
Example
Type
Required
Description

appId

geodnet

String

Yes

Application ID

username

geoduser

String

Yes

username

start

1738922400000

Number

Yes

Start timestamp in ms

end

1738926000000

Number

Yes

End timestamp in ms

limit

10

Number

Yes

Number of logs, max 100

time

1718150400000

Number

Yes

Current server timestamp (ms)

sign

1526be641371c27c0e9c2857b636e6ab

String

Yes

Encrypted signature

Response Body

Parameter
Example
Type
Description

code

1000

Number

Status code

msg

OK

String

Status code description

data

[...]

Array

Log list

data[].username

geoduser

String

username

data[].action

5

Number

Change operation: 1 Create, 2 Update expiration, 3 Update status, 4 Update connections, 5 Update email

data[].oldValue

String

Value before change

data[].newValue

String

Value after update

data[].time

1738924143336

Number

Update timestamp (ms)

Request Example

{
  "appId": "geodnet",
  "username": "geoduser",
  "start": 1738922400000,
  "end": 1738926000000,
  "limit": 10,
  "time": 1718150400000,
  "sign": "1526be641371c27c0e9c2857b636e6ab"
}

cURL

curl -X POST "https://rtk.geodnet.com/api/v3/user/logs" \
  -H "Content-Type: application/json" \
  -d '{
    "appId": "geodnet",
    "username": "geoduser",
    "start": 1738922400000,
    "end": 1738926000000,
    "limit": 10,
    "time": 1718150400000,
    "sign": "1526be641371c27c0e9c2857b636e6ab"
  }'

Response

{
  "code": 1000,
  "msg": "OK",
  "data": [
    {
      "username": "geoduser",
      "action": 5,
      "oldValue": "",
      "newValue": "[email protected]",
      "time": 1738924143336
    },
    {
      "username": "geoduser",
      "action": 4,
      "oldValue": "1",
      "newValue": "1",
      "time": 1738924092345
    },
    {
      "username": "geoduser",
      "action": 3,
      "oldValue": "0",
      "newValue": "1",
      "time": 1738924070042
    },
    {
      "username": "geoduser",
      "action": 2,
      "oldValue": "1739528512591",
      "newValue": "1735689600000",
      "time": 1738923982974
    },
    {
      "username": "geoduser",
      "action": 1,
      "oldValue": "",
      "newValue": "",
      "time": 1738923712602
    }
  ]
}

Last updated