Difference between revisions of "Development:Prana Breath API/Collections:Reminders"
From Olekdia Wiki
(Created page with "<code>reminders</code>, or <code>rems</code> - collection that gives you control over reminders in the app.<br/> __TOC__ <div class="api-table long-code"> == Prefix == * <co...") |
|||
Line 26: | Line 26: | ||
* <code>pranabreath://reminders?cmd=list</code> | * <code>pranabreath://reminders?cmd=list</code> | ||
<pre> | <pre> | ||
− | + | id time training when | |
− | + | 16 07:30 Power Every day | |
− | + | 6 18:00 Clear mind Every day | |
− | + | 8 10:00 Heart rate Sunday | |
− | + | 10 10:03 Blood circulation Sunday | |
− | + | 11 10:05 Buteyko test Sunday | |
− | + | 3 10:10 Genchi test Sunday | |
− | |||
− | |||
− | |||
</pre> | </pre> | ||
* <code>pranabreath://reminders</code> - It is a default command when only ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. | * <code>pranabreath://reminders</code> - It is a default command when only ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. | ||
Line 41: | Line 38: | ||
| | | | ||
==='''create'''=== | ==='''create'''=== | ||
− | | Create the | + | | Create the reminder with defined [[#Parameters|parameters]]. |
− | * <code>pranabreath:// | + | * <code>pranabreath://reminders?cmd=create&time=18_30&pid=1</code> - Create a reminder for the training with id equals 1, at 18:30. |
− | |||
|- | |- | ||
| | | | ||
==='''delete'''=== | ==='''delete'''=== | ||
− | | Delete the selected | + | | Delete the selected reminder. If there is no the input reminder - nothing happens. |
− | * <code> | + | * <code>https://olekdia.com/pranabreath/reminders/13?cmd=delete</code> - Delete training with id 13. |
− | |||
|} | |} | ||
Line 59: | Line 54: | ||
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''pid'''=== |
− | | | + | | Parent ID, reference to the training of the reminder. |
− | * <code>pranabreath:// | + | * <code>pranabreath://reminders/3?pid=5</code> - Set a reminder with id equals 3 for a training with id equals 5. |
− | |||
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''enabled'''=== |
− | | | + | | Represents state of reminder. Values range [true, false] |
* <code>pranabreath://trngs?cmd=import&public_id=25</code> - Import training with <code>public_id</code> equals 25 which is [[Ha breathing]] training. | * <code>pranabreath://trngs?cmd=import&public_id=25</code> - Import training with <code>public_id</code> equals 25 which is [[Ha breathing]] training. | ||
|- | |- | ||
| | | | ||
− | ===''' | + | ==='''time'''=== |
− | | | + | | Represents state of reminder. Values range [true, false] |
− | * <code>pranabreath:// | + | * <code>pranabreath://trngs?cmd=import&public_id=25</code> - Import training with <code>public_id</code> equals 25 which is [[Ha breathing]] training. |
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
</div> | </div> |
Revision as of 14:32, 1 February 2019
reminders
, or rems
- collection that gives you control over reminders in the app.
Contents
Prefix
pranabreath://
- Case-insensitive.https://olekdia.com/pranabreath/
- Case-sensitive.https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/
- Case-sensitive.
Syntax
pranabreath://reminders/item?cmd=[Command]
- Case-insensitive.pranabreath://reminders/item?[Parameter]=[Value]
pranabreath://reminders/item?cmd=[Command]&[Parameter1]=[Value1]&[Parameter2]=[Value2]
https://olekdia.com/pranabreath/reminders?cmd=[Command]&[Parameter]=[Value]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns reminders list. Currently it is only used in console for retrieving reminders list.
id time training when 16 07:30 Power Every day 6 18:00 Clear mind Every day 8 10:00 Heart rate Sunday 10 10:03 Blood circulation Sunday 11 10:05 Buteyko test Sunday 3 10:10 Genchi test Sunday
|
create |
Create the reminder with defined parameters.
|
delete |
Delete the selected reminder. If there is no the input reminder - nothing happens.
|
Parameters
Parameter | Description |
---|---|
pid |
Parent ID, reference to the training of the reminder.
|
enabled |
Represents state of reminder. Values range [true, false]
|
time |
Represents state of reminder. Values range [true, false]
|