by almaceleste
Version 4 (March 22, 2022)
Download (150 downloads)
๐ฏ To try examples install this flow https://llamalab.com/automate/community/flows/41814.
โ ๏ธ Recommended: disable flow logging.
โน๏ธ The .lib-config library is a set of functions that are useful in flow development, standardize your methods for getting flow-specific data, and save you from having to use the repeating sets of blocks in each flow. Now these methods are combined into one library and can be used from many flows. You simply install the .lib-config library, start it - and all you have to do in your flow is send your request and receive a response.
โน๏ธ How it works:
0. Install and start .lib-config library.
1. add ๐๐ฟ๐ผ๐ฎ๐ฑ๐ฐ๐ฎ๐๐ ๐๐ฒ๐ป๐ฑ block to your flow.
2. fill in ๐๐ป๐ฝ๐๐ ๐ฎ๐ฟ๐ด๐๐บ๐ฒ๐ป๐๐:
โซ๏ธ๐๐ค๐ต๐ช๐ฐ๐ฏ: "๐ฐ๐ณ๐จ.๐ข๐ญ๐ฎ๐ข๐ค๐ฆ๐ญ๐ฆ๐ด๐ต๐ฆ.๐ญ๐ช๐ฃ-๐ค๐ฐ๐ฏ๐ง๐ช๐จ"
โซ๏ธ๐๐ข๐ต๐ข ๐๐๐: any unique data to use as callback, e.g. caller fiber uri
โซ๏ธ๐๐๐๐ ๐ต๐บ๐ฑ๐ฆ: ๐ข๐ฑ๐ฑ๐ญ๐ช๐ค๐ข๐ต๐ช๐ฐ๐ฏ/๐ซ๐ด๐ฐ๐ฏ
โซ๏ธ๐๐ข๐ต๐ฆ๐จ๐ฐ๐ณ๐บ: requested method, array for multiple methods
โซ๏ธ๐๐น๐ต๐ณ๐ข๐ด: [optional] extra data, specific for different methods
3. add ๐๐ฟ๐ผ๐ฎ๐ฑ๐ฐ๐ฎ๐๐ ๐ฟ๐ฒ๐ฐ๐ฒ๐ถ๐๐ฒ block.
4. fill in ๐๐ป๐ฝ๐๐ ๐ฎ๐ฟ๐ด๐๐บ๐ฒ๐ป๐๐:
โซ๏ธ๐๐ค๐ต๐ช๐ฐ๐ฏ: the unique data from the Data URI field of the Broadcast send block
โซ๏ธ๐๐๐๐ ๐ต๐บ๐ฑ๐ฆ: ๐ข๐ฑ๐ฑ๐ญ๐ช๐ค๐ข๐ต๐ช๐ฐ๐ฏ/๐ซ๐ด๐ฐ๐ฏ
โซ๏ธ๐๐ข๐ต๐ฆ๐จ๐ฐ๐ณ๐บ: equal to the value of this field in the Broadcast send block
โซ๏ธ๐๐ช๐ค๐ต๐ช๐ฐ๐ฏ๐ข๐ณ๐บ ๐ฐ๐ง ๐ฃ๐ณ๐ฐ๐ข๐ฅ๐ค๐ข๐ด๐ต ๐ฆ๐น๐ต๐ณ๐ข๐ด: variable to get response data, e.g. ๐ฅ๐ช๐ค๐ต๐ช๐ฐ๐ฏ๐ข๐ณ๐บ_๐ฏ๐ข๐ฎ๐ฆ
5. use the response data in your flow, e.g. ๐ฅ๐ช๐ค๐ต๐ช๐ฐ๐ฏ๐ข๐ณ๐บ_๐ฏ๐ข๐ฎ๐ฆ["๐ต๐ช๐ต๐ญ๐ฆ"].
โน๏ธ For more information use method ๐ฉ๐ฆ๐ญ๐ฑ.
๐ฅ Flows using .lib-config:
โซ๏ธ.lib-config examples https://llamalab.com/automate/community/flows/41814
โซ๏ธ.lib-config promise example https://llamalab.com/automate/community/flows/41816
โซ๏ธMuted activities https://llamalab.com/automate/community/flows/41710
โซ๏ธNot Less Than Sound https://llamalab.com/automate/community/flows/41723
-------
v4:
- add error-block, -type and -info to the response
- add replacement of illegal characters in get-path
- improve help documentation
v3:
- change the title to less eyesore
- fix typos
- add missed link to the documentation
v2:
- add option to show toast in test method or not
- fix help method not closing its fiber
5 stars | 0 | |
4 stars | 1 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.