### Import Data from makeshop Source: https://support.smart-bdash.com/start_setting Instructions on importing member data and other information from makeshop. ```APIDOC ## Import Data from makeshop ### Description This guide explains how to import member data and other information managed by makeshop. ### Method POST ### Endpoint /api/data/import/makeshop ### Parameters #### Request Body - **file** (File) - Required - The data file to be imported. - **mapping** (Object) - Optional - Data mapping configuration. ``` -------------------------------- ### GET Request for Records (Example) Source: https://support.smart-bdash.com/start_setting/13077 This is an example of a GET request to the Smart BDash API to fetch records. It specifies the API endpoint and a limit for the number of records to retrieve in a single call. The 'limit' parameter can be used to control the batch size, up to a maximum of 10,000 records. ```http GET https://api.smart-bdash.com/api/v1/datafiles/12345/records?limit=10000 ``` -------------------------------- ### Set up b→dash API Authentication Source: https://support.smart-bdash.com/start_setting Instructions for setting up authentication for b→dash API access, focusing on the originating system/application. ```APIDOC ## Set up b→dash API Authentication ### Description This guide explains how to configure authentication for your system or application when accessing the b→dash API, ensuring secure communication. ### Method POST ### Endpoint /api/authentication/setup ### Parameters #### Request Body - **api_key** (string) - Required - Your generated b→dash API key. - **client_secret** (string) - Required - Your client secret for authentication. ``` -------------------------------- ### Request Sender Information List (HTTP GET Example) Source: https://support.smart-bdash.com/start_setting/13137 This example shows the HTTP GET request format to retrieve sender information. It includes the Authorization header with an access token. Ensure you have obtained the access token beforehand via the authentication method described in the documentation. ```http GET https://api.smart-bdash.com/api/v1/sender_infos/mail Authorization: Bearer {アクセストークン} ``` -------------------------------- ### Import Data from kintone Source: https://support.smart-bdash.com/start_setting Instructions on importing data from kintone using the Data Palette. ```APIDOC ## Import Data from kintone ### Description This guide explains how to import data from kintone by navigating through the 'Data Palette' and selecting 'Connect Data'. ### Method POST ### Endpoint /api/data/import/kintone ### Parameters #### Request Body - **kintone_app_id** (string) - Required - The ID of the kintone application. - **data** (Array) - Required - The data records to import. ``` -------------------------------- ### Display Popup in WebView Content Source: https://support.smart-bdash.com/start_setting/5163 Provides an example of displaying a popup within a WebView. The popup is shown after the web page has finished loading, using the onPageFinished callback of a WebViewClient. It also includes logic to close any existing popup when a new page starts loading. ```java public class ProductDetailFragment extends Fragment { BDashWebReception bDashWebReception; WebView webView; public View onCreateView( … ) { // インスタンスを管理します if( savedInstanceState != null ) { // タスクキルされたときに アプリ接客ポップアップを安全に終了させます FragmentManager manager = getFragmentManager(); Fragment fragment = manager.findFragmentByTag(BDashWebReception.BDASH_FRAGMENT_TAG); if( fragment != null ) { bDashWebReception = (BDashWebReception) fragment; bDashWebReception.dismiss(); } } // WebView の読み込み webView = view.findViewById(R.id.webView); webView.setWebViewClient(webViewClient); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("https://xxxxxxxxxxxxx"); // インスタンスを生成します bDashWebReception = BDashWebReceptionController.getInstance().newPopup(); } // Webページが表示されるタイミングの検知 WebViewClient webViewClient = new WebViewClient(){ @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); BDashReport report = new BDashReport(); report.targets = new String[]{targetUrl}; report.trigger = BDashReport.TRIGGER_DEFAULT; report.view = targetUrl; report.preView = lastUrl; report.eventFunc = "onPageFinished"; // ポップアップを表示させます bDashWebReception.showMessage( report, // BDashReport を指定します getActivity(), // Activity を指定します getChildFragmentManager()// FragmentManager を指定します ); } @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); // ページ切り替えが発生するときは閉じる bDashWebReception.closeMessage(); } } ``` -------------------------------- ### Import Data from Sansan Source: https://support.smart-bdash.com/start_setting Instructions for importing data from Sansan using the Data Palette. ```APIDOC ## Import Data from Sansan ### Description This guide details how to import data from Sansan by accessing the 'Data Palette' and initiating data connection. ### Method POST ### Endpoint /api/data/import/sansan ### Parameters #### Request Body - **file** (File) - Required - The data file to be imported. - **mapping** (Object) - Optional - Data mapping configuration. ```