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
Key | Value | Description |
---|---|---|
clientKey | String | Client key |
lang | String | Language |
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |
{data} | class | |
seq | Int | Sequence number |
title | String | Title |
type | String | Type of agreement |
lang | String | Language |
useStatus | String | Usage status |
regUserKey | String | Registered user ID |
regDt | String | Registration date |
clientKey | String | Unique client key |
clientName | String | Client name |
customizable | String | Customization 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
Key | Value | Description |
---|---|---|
clientKey | String | Client key |
seq | Int | Terms of Service sequence number |
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |
{data} | class | |
seq | Int | Sequence number |
title | String | Title |
content | String | Content |
type | String | Type of agreement |
lang | String | Language |
useStatus | String | Usage status |
regUserKey | String | Registered user ID |
regDt | String | Registration date |
clientKey | String | Unique client key |
clientName | String | Client name |
regUserName | String | Registered user's name |
subCltBhv | String | Settings 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
Name | Type | Description |
---|---|---|
page | Int | Page number |
size | Int | Size per page |
clientKey | String | Unique client key |
Response
Name | Type | Description |
---|---|---|
rtCode | Int | Result code |
rtMsg | String | Result message |
{data} | class | |
data.seq | Int | Serial number |
data.title | String | Title |
data.content | String | Content |
data.patchType | String | OS type |
data.version | String | Version information |
data.regUserName | String | Registered user name |
data.deployDt | String | Deployment date |
data.regDt | String | Registration date |
{page} | class | |
page.first | Boolean | Is first page |
page.last | Boolean | Is last page |
page.currentPage | Int | Current page number |
page.pageSize | Int | Size per page |
page.totalElements | Int | Total number of elements |
page.totalPages | Int | Total number of pages |