The Windows app is a notes server. The data is sent in XML markup. The text of the note is converted into a sequence of characters - "x" + character number. For example, the word "Hello" is converted to "x72x101x108x108x111".
Request | Request type | Description | Value / Status |
---|---|---|---|
IP:PORT/api/connecttest |
GET | Getting the server availability status. | "ok" |
IP:PORT/api/auth?id=DEVICE |
GET | Request to add to the list of authorized devices. | "auth:ok" or "auth:denied" |
IP:PORT/api/notes?id=DEVICE |
GET | Getting a list with identifiers (Unix timestamp), notes and note times (Unix timestamp with UTC offset). | <notes> <note id="1553285632" datetime="1553300032">x72x101x108x108x111</note> <note id="1553248570" datetime="1553262970">x72x101x108x108x111</note> </notes> |
IP:PORT/api/actions?id=DEVICE |
GET | Receiving new changes from the server. | <actions> <insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert> <update id="1553248570" datetime="1553262970">x72x101x108x108x111</update> <delete id="1553248570"></delete> </actions> |
IP:PORT/api/received?id=DEVICE |
GET | Confirmation of receiving new changes from the server. | "ok" or "auth:denied" |
IP:PORT/api/syncnotes?id=DEVICE |
POST | Sending new changes from the client. | <actions> <insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert> <update id="1553248570" datetime="1553262970">x72x101x108x108x111</update> <delete id="1553248570"></delete> </actions> |
IP
is the address running the application for Windows. The default port is 735. DEVICE
is the name of the device, for example Android_g9N1z5S2
or iOS_rM5s3Gz7
.