ZCAPIサービス

ZCAPIサービス

お知らせ:当社は、お客様により充実したサポート情報を迅速に提供するため、本ページのコンテンツは機械翻訳を用いて日本語に翻訳しています。正確かつ最新のサポート情報をご覧いただくには、本内容の英語版を参照してください。

ZCAPIService

このサービスを使用すると、アプリケーションとセクションの一覧および、それぞれに含まれるコンポーネントを取得できます。

メソッド
fetchSectionList(for:completionHandler:)アプリケーション内のすべてのセクションとそのコンポーネント(フォーム、レポート、ページ)、およびすべての承認の一覧を取得します。
 
fetchNewNotificationRedirectionInfo(for appContext: AppContext? = nil, notificationID: String ,カテゴリー: ZCNotification。カテゴリー, completionHandler: @escaping (Result<ZCNotificationRedirection>) -> 無効)通知に関連付けられたデータのメタデータ(ID、レポートリンク名、アプリケーションリンク名)を取得します。
 
fetchAppContext(for application: Application, completionHandler: @escaping (Result<AppContext>) -> 無効)applicationId、appLinkName、scopeId を含む appContext を取得します。
 
fetchThemeInfo(for application: Application, completionHandler: @escaping (Result<ThemeInfo>) -> 無効)アプリケーションの themeInfo を取得します。取得した情報を使用して、ViewController にテーマを適用できます。
 
 
fetchSectionList(for:completionHandler:)

パラメーター

application アプリケーション情報を保持するオブジェクトです。
completionHandler アプリケーション一覧は completionHandler に返されます。
 
fetchNewNotificationRedirectionInfo(for appContext: AppContext? = nil, notificationID: String ,カテゴリー: ZCNotification。カテゴリー, completionHandler: @escaping (Result<ZCNotificationRedirection>) -> 無効)

パラメーター


appContext

必須入力であり、アプリケーション情報を保持します。指定しない場合、API は動作しません。この appContext を取得するには、ZCAPIService の fetchAppContext メソッドを使用します。
notificationID 通知の一意の ID を保持します。
カテゴリー 通知のカテゴリーを保持します。

completionHandler

ZCNotificationRedirection は completionHandler に返されます。
 
fetchNewNotifications(for appContext: AppContext? = nil, lastNotificationID: String? ,filterUnread:Bool , filteredApp :ZCNotificationApp?, completionHandler: @escaping (Result<ZCNotificationList>) -> 無効)

パラメーター


appContext


必須パラメーターで、アプリケーション情報を保持します。指定しない場合、API は動作しません。この appContext を取得するには、ZCAPIService の fetchAppContext メソッドを使用します。
 
lastNotificationID この通知 ID の後に送信された通知のみを取得します。nil の場合は、すべての通知を取得します。
filteredUnread true の場合、未読の通知のみを取得します。
false の場合は、すべての通知を取得します。

filteredApp

nil

completionHandler

ZCNotificationList が completionHandler に返されます。
 
 
fetchAppContext(for application: Application, completionHandler: @escaping (Result<AppContext>) -> 無効)

パラメーター

application アプリケーション情報を保持するオブジェクトです。
completionHandler AppContext が completionHandler に返されます。
fetchThemeInfo(for application: Application, completionHandler: @escaping (Result<ThemeInfo>) -> 無効)

パラメーター

application アプリケーション情報を保持するオブジェクトです。
completionHandler ThemeInfo が completionHandler に返されます。