Difference between revisions of "Development:Prana Breath API/Collections:Motivators"
From Olekdia Wiki
(→Syntax) |
(→name) |
||
Line 57: | Line 57: | ||
| | | | ||
==='''name'''=== | ==='''name'''=== | ||
− | | | + | | Actually the message of the motivator. |
− | * <code>pranabreath:// | + | * <code>pranabreath://motivators/11?name=TWF5IHRoZSBGb3JjZSBiZSB3aXRoIHlvdSE=</code> - Set the message of the motivator with id equeals 11 to "May the Force be with you!". The message should be [https://en.wikipedia.org/wiki/Base64 Base64] encoded for the URL safety. |
− | * <code>https://olekdia.com/pranabreath/ | + | * <code>https://olekdia.com/pranabreath/motivators?cmd=create&name=TWF5IHRoZSBGb3JjZSBiZSB3aXRoIHlvdSE</code> - Todo. |
|} | |} | ||
</div> | </div> |
Revision as of 17:11, 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://motivators/item?cmd=[Command]
- Case-insensitive.pranabreath://motivators/item?[Parameter]=[Value]
https://olekdia.com/pranabreath/motivators?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 motivator. If there is no selected motivator - nothing happens.
|
Parameters
Parameter | Description |
---|---|
name |
Actually the message of the motivator.
|