Skip to content

Other APIs (No need for Access Token)

i. Terms and Conditions

Request the Terms of Service API using BsaSdk's getAgreements().

Example

kotlin
BsaSdk.getInstance().sdkService.getAgreements(clientKey, lang, object: SdkResponseCallback<AgreementListResponse> {
	override fun onSuccess(response: AgreementListResponse?) {  
		...
	}
	override fun onFailed(errorResult: ErrorResult?) {  
		...  
	}
})

Parameter

KeyValueDescription
clientKeyStringClient key
langStringLanguage

Response

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult message
{data}class
seqIntSequence number
titleStringTitle
typeStringType of agreement
langStringLanguage
useStatusStringUsage status
regUserKeyStringRegistered user ID
regDtStringRegistration date
clientKeyStringUnique client key
clientNameStringClient name
customizableStringCustomization applicability

ii. Detailed Terms and Conditions

Request the API for the details of the Terms of Service using BsaSdk's getAgreementDetail().

Example

kotlin
BsaSdk.getInstance().sdkService.getAgreementDetail(clientKey, seq, object: SdkResponseCallback<AgreementDetailResponse> {
	override fun onSuccess(response: AgreementDetailResponse?) {  
		...
	}
	override fun onFailed(errorResult: ErrorResult?) {  
		...
	}
})

Parameter

KeyValueDescription
clientKeyStringClient key
seqIntTerms of Service sequence number

Response

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult message
{data}class
seqIntSequence number
titleStringTitle
contentStringContent
typeStringType of agreement
langStringLanguage
useStatusStringUsage status
regUserKeyStringRegistered user ID
regDtStringRegistration date
clientKeyStringUnique client key
clientNameStringClient name
regUserNameStringRegistered user's name
subCltBhvStringSettings for sub-client independence

iii. Notice

Through BsaSdk's getNotificationDetail(), you can request the API to query the notifications.

Example

kotlin
BsaSdk.getInstance().sdkService.getNotificationDetail(page, size, object: SdkResponseCallback<NotificationResponse> {
	override fun onSuccess(notification: NotificationResponse?) {
		// Code to execute after querying
		...
	}
	override fun onFailed(errorResult: ErrorResult?) {
		...
	}
})

Parameter

NameTypeDescription
pageIntPage number
sizeIntSize per page
clientKeyStringUnique client key

Response

NameTypeDescription
rtCodeIntResult code
rtMsgStringResult message
{data}class
data.seqIntSerial number
data.titleStringTitle
data.contentStringContent
data.patchTypeStringOS type
data.versionStringVersion information
data.regUserNameStringRegistered user name
data.deployDtStringDeployment date
data.regDtStringRegistration date
{page}class
page.firstBooleanIs first page
page.lastBooleanIs last page
page.currentPageIntCurrent page number
page.pageSizeIntSize per page
page.totalElementsIntTotal number of elements
page.totalPagesIntTotal number of pages