HTTP GET requests in the MyTreeNotes
(Video on Youtube)
MyTreeNotes (Android app) - allows to send HTTP GET request to any address on the Internet.
The result after executing of GET request can be saved in a note (MyTreeNotes), only on condition that the result of the GET request will be in JSON format:
The result after executing of GET request can be saved in a note (MyTreeNotes), only on condition that the result of the GET request will be in JSON format:
{"id":"","value":"RESULT"}
Field | Description |
id | Reserved, not used, but must be present, you can always use: "id":"" |
value | Must contain a new value that will be saved in the note.
In the example, the text RESULT will be saved in the contents of the note(MyTreeNotes) |
If the result of the GET request is in another format, then the result will not be saved in the content of the note (MyTreeNotes).
Examples of HTTP GET requests in MyTreeNotes:
https://mytreenotes.com/about/get_request.php?action=increase
[Decrease number]https://mytreenotes.com/about/get_request.php?action=decrease
{The current state}https://mytreenotes.com/about/get_request.php?action=state
Format | Description |
Link | In MyTreeNotes, when selected, only the link is displayed. The GET request is executed only when you click this link. |
[Comment]Link | In MyTreeNotes, when selected, a comment is displayed instead of a link. The GET request is executed only when you click this link. |
{Comment}Link | In MyTreeNotes, when selected, a comment is displayed instead of a link. 1. The GET request is executed when you click this link. 2. One click of the "Sync" button executes all such HTTP GET requests in the entire database. If the result of the GET request is in the format {"id":"","value":"New text"} then the content of the note will be updated in each such note in the entire database. |
Example source code(PHP): get_request.php
Install MyTreeNotes (Android): https://play.google.com/store/apps/details?id=ru.iprg.mytreenotes
Online notes: https://mytreenotes.com