Search
🔩

How to Use Block Store (EN)

This document introduces how to subscribe to and download Block Packages registered in the Block Store and utilize them in BizUnit.
Index

Overview

1) What is Block Store?

Block Store is a system that manages services provided in API format from various platforms such as public data, finance, my data, and payment in the form of Block Packages that can be used in SyncTree through Block Coding.
Block Packages can be used for free or for a fee depending on the usage fee policy registered by the Block Provider.
Billing for Block Packages is calculated by counting 1 call when the service (BizUnit) that used the Block is actually called.

2) Terminology

Block : An application implemented as a block for a specific service (API).
Block Package : A collection of Blocks provided as a service by grouping them by function and purpose.
Block Provider : The producer of Blocks and Block Packages.
Block Store : A page where users can check the Block Packages registered by the Block Provider, accessed through SyncTree Studio.

3) Block Store Flow

Step 1 : Block Provider registers Block Packages in the Block Store.
Step 2 : SyncTree users subscribe to and download Block Packages in the Block Store.
Step 3 : After calculating block usage, SyncTree Users pay according to the Block Package policy.
Step 4 : Block Provider pays for the usage amount of the Block Package.

Subscribing to Block Packages

1) Move to All Blocks

Check various Block Packages registered in the All Blocks menu.
No.
Description
1
Search for Block Packages by keywords.
2
Recently registered Block Packages.
3
Block Packages that have been frequently used.
4
Block Packages recommended by Block Store Admin, curated.
5
All registered Block Packages are classified by category. * Categories without Block Packages are not displayed. Category) AI / Hosting / Social Media / Portal / Chat / Weather / Location / Collaboration / Transportation / Health / Payment / Medical / Tools / Business / Finance / ETC

2) All Blocks Detail Page

Select a Block Package to access the detail page and subscribe to it.
No.
Description
1
Determines subscription/unsubscription of Block Packages. * If Block Package is connected to BiUnit after subscription, it must be disconnected first to unsubscribe.
2
Package Guide link button to use Block Package. * It is not displayed if the Block Provider does not register the Guide.
3
Information about the Block Provider and the cost charged for using the Block. * It is not displayed if the Block Provider does not register the Cost.
4
Select the Version of the Block Package. Description and content of the Block change depending on the Version.
5
Area that describes the introduction and key features of the Block Package.
6
Popup that shows parameters and specifications for using Blocks when a Block is selected.
When subscribing to a Block Package, the following guidance message Snackbar is displayed.

Block Download

1) Move to My Blocks

Check the subscribed Block Package list in the My Blocks menu.
No.
Description
1
Search for subscribed Block Packages by Package Title and Provider. The number of search results is displayed as Result.
2
Connect to the detailed page of the selected Block Package. Supports sorting by Package Title ascending/descending.
3
Displays the Package Version of the checked Used Version among the subscribed Block Packages.
4
Displays a popup window that shows the BizUnit that uses the Block Package. * The value of Revision Used must be '0' to unsubscribe from the Block Package
5
Sorts Block Package by Block Package Update date ascending/descending.

2) My Blocks Detail Page

Select a Block Package to access the detail page and download the Block Package.
No.
Description
Remarks
1
Determines the subscription cancellation of the Block Package. * If Block Package is connected to BiUnit after subscription, it must be disconnected first to unsubscribe
-
2
Package Guide link button to use Block Package. * It is not displayed if the Block Provider does not register the Guide.
-
3
Information about the Block Provider and the cost charged for using the Block. * It is not displayed if the Block Provider does not register the Cost. A popup window is displayed that shows the BizUnit that uses the Block Package. * The value of Revision Used must be '0' to unsubscribe from the Block Package.
-
4-1
Select the Version of the Block Package. Description and content of the Block change depending on the Version.
A prerequisite for performing 4-2 and 4-3.
4-2
Download the Block after selecting Version.
Must precede 4-1.
4-3
The Block Download button is disabled, and the Used Version toggle button is displayed, which shows that the Block Package is in use when turned On, and it is displayed in the Block Category of BlzUnit.
Must precede 4-2.
5
Area that describes the introduction and key features of the Block Package.
-
6
Popup that shows parameters and specifications for using Blocks when a Block is selected.
-
7
Displays the Version of the Block.
Block Package Version ≠ Block Version
8
A popup window that shows only the BizUnit that uses the Block of the selected Version is displayed.
-

Apply Block in BizUnit

1) Move to BizUnit

After downloading, the Block with an active Used Version is registered in the Block Package Category of BizUnit and can be used through Block Coding.

2) Building Block Architecture

Since the usage of each Block varies slightly, Block Coding is done by referring to the Package Guide and Block Specification.
Blocks have fixed Endpoint and Http method to call a specific service, and some operations need to be performed.
Setting Request Parameter of Block
Fetching Response Data of Block
Example using OpenAI:ChatGPT Block (This is explained by splitting the code with Code Split)
Step 1 : Constructing Request Parameter to Receive from Client
Step 2 : RequestData Fetch
Step 3 : Constructing Block, Setting Request Parameter of Block
Step 4 : Fetching Response Data of Block
Step 5: Returning Response Result
Step 6 : Test
Entire Image of Bizunit

How to Check Block Usage

You can check the usage and cost of the Block in the Block Store Usage Reports.