Skip to content

Commit

Permalink
Add: #227 - Updated sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan committed Nov 15, 2023
1 parent f5da919 commit 706056c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ object PrivacyDashboard {
userId: String? = null,
): String? {
val body = ConsentStatusRequestV2()
body.optIn = false
body.optIn = true

val apiService: BBConsentAPIServices = BBConsentAPIManager.getApi(
apiKey = apiKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ class MainActivity : AppCompatActivity() {
setSupportActionBar(binding.toolbar)

binding.container.btPrivacyDashboard.setOnClickListener {
/* to create an individual
GlobalScope.launch {
PrivacyDashboard.createAnIndividual(
apiKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTY29wZXMiOlsic2VydmljZSJdLCJPcmdhbmlzYXRpb25JZCI6IjY1MjY1Nzk2OTM4MGYzNWZhMWMzMDI0NSIsIk9yZ2FuaXNhdGlvbkFkbWluSWQiOiI2NTI2NTc5NjkzODBmMzVmYTFjMzAyNDMiLCJleHAiOjE3MDI0NDUyMjR9.iMbsEe-nN_EHzWg0KOeUGTUR1F3xYH8lQBP90Mpt_ZY",
baseUrl = "https://staging-consent-bb-api.igrant.io/v2/"
)
}
to create an individual*/

/*data sharing UI sample
Expand Down

0 comments on commit 706056c

Please sign in to comment.