Difference between revisions of "Development:Prana Breath API/Collections:Motivators"
From Olekdia Wiki
(Created page with "<code>motivators</code> - Collection that gives the control over motivators in the app.<br/> __TOC__ <div class="api-table long-code"> == Prefix == * <cod...") |
|||
Line 1: | Line 1: | ||
− | <code>motivators</code> - | + | <code>motivators</code> - Сollection that gives control over [[Motivators_tab|motivators]] in the app.<br/> |
__TOC__ | __TOC__ | ||
Line 24: | Line 24: | ||
==='''list'''=== | ==='''list'''=== | ||
| Returns training list. Currently it is used only in console for retrieving a training list. | | Returns training list. Currently it is used only in console for retrieving a training list. | ||
− | * <code>pranabreath:// | + | * <code>pranabreath://motivators?cmd=list</code> |
<pre> | <pre> | ||
− | + | id name | |
− | + | 1 "Start from Monday" - is that familiar? | |
− | + | 2 No more reasons to delay! | |
− | + | 3 Find the time for your health! | |
− | + | 4 The work will still be there, so pause and breath! | |
− | + | 5 Remember, how's that - to breathe freely? | |
− | + | 6 It's time to invest in your health! | |
− | 6 | + | ... |
− | |||
− | |||
</pre> | </pre> | ||
− | * <code>pranabreath:// | + | * <code>pranabreath://motivators</code> - It is a default command if ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. |
|- | |- | ||
| | | |
Revision as of 16:35, 1 February 2019
motivators
- Сollection that gives control over motivators in the app.
Prefix
pranabreath://
- Case-insensitive.https://olekdia.com/pranabreath/
- Case-sensitive.https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/
- Case-sensitive.
Syntax
pranabreath://trainings/item?cmd=[Command]
- Case-insensitive.pranabreath://Trainings/item?[Parameter]=[Value]
pranabreath://trainings/item?cmd=[Command]&[Parameter1]=[Value1]&[Parameter2]=[Value2]
https://olekdia.com/pranabreath/trainings?cmd=[Command]&[Parameter]=[Value]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns training list. Currently it is used only in console for retrieving a training list.
id name 1 "Start from Monday" - is that familiar? 2 No more reasons to delay! 3 Find the time for your health! 4 The work will still be there, so pause and breath! 5 Remember, how's that - to breathe freely? 6 It's time to invest in your health! ...
|
create |
Create the training with certain parameters. If training with such name already exists - new training will not be created. Instead all parameters will be applied to existing training.
|
delete |
Delete the selected training. If there is no selected training - nothing happens.
|
Parameters
Parameter | Description |
---|---|
name |
Name of the training.
|