{"_id":"5b08789af760060003fd87e5","project":"565775994d1c720d001f5224","version":{"_id":"5657759a4d1c720d001f5227","__v":4,"project":"565775994d1c720d001f5224","createdAt":"2015-11-26T21:11:54.292Z","releaseDate":"2015-11-26T21:11:54.292Z","categories":["5657759a4d1c720d001f5228","565e2251413e06170093dcd8","565e261c413e06170093dcdd","565e27068f048c2100442a2c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5657759a4d1c720d001f5228","version":"5657759a4d1c720d001f5227","pages":["5657759b4d1c720d001f522a","56be0f1f37d84017009de5e6","56be0f325baf530d0051a87d"],"project":"565775994d1c720d001f5224","__v":3,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-26T21:11:54.842Z","from_sync":false,"order":1,"slug":"documentation","title":"Documentation"},"user":"577fd68d40417c0e0041dc37","githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-05-25T20:56:58.520Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"To comply with GDPR regulation that went into effect May 25th, 2018, Tapcore has enabled a new API to send user consent from your applications to the Tapcore platform. This option is required when you choose to use your own user consent solution.\n\nYou have the ability to use Tapcore's built-in user consent, which is now bundled in the latest Tapcore SDK that became available May 25th, 2018. Simply update your app(s) with this SDK to leverage this solution.\n\nIf you choose to send user consent via our API, please use the method described below:\n\n**Once you receive a user's consent (either agree or disagree), use the code below to notify Tapcore of the user's decision.**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"//Create instance of SharedPreferences\\nSharedPreferences preferences = getApplicationContext().getSharedPreferences(\\\"tapcore_consent\\\", Context.MODE_PRIVATE);\\n//Save to SharedPreferences user id, that you generate for this specific user\\npreferences.edit().putString(\\\"user_id\\\",\\\"<USER_ID_THAT_YOU_GENERATE>\\\").commit();\\n//Set 'true' if user agreed consent or set 'false' otherwise\\npreferences.edit().putBoolean(\\\"consent_agreed\\\",<true|false>).commit();\\n//You'r done. Thank you\",\n      \"language\": \"java\",\n      \"name\": \"GDPR Consent\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"tapcore-gdpr-consent-api","type":"basic","title":"Tapcore GDPR Consent API"}

Tapcore GDPR Consent API


To comply with GDPR regulation that went into effect May 25th, 2018, Tapcore has enabled a new API to send user consent from your applications to the Tapcore platform. This option is required when you choose to use your own user consent solution. You have the ability to use Tapcore's built-in user consent, which is now bundled in the latest Tapcore SDK that became available May 25th, 2018. Simply update your app(s) with this SDK to leverage this solution. If you choose to send user consent via our API, please use the method described below: **Once you receive a user's consent (either agree or disagree), use the code below to notify Tapcore of the user's decision.** [block:code] { "codes": [ { "code": "//Create instance of SharedPreferences\nSharedPreferences preferences = getApplicationContext().getSharedPreferences(\"tapcore_consent\", Context.MODE_PRIVATE);\n//Save to SharedPreferences user id, that you generate for this specific user\npreferences.edit().putString(\"user_id\",\"<USER_ID_THAT_YOU_GENERATE>\").commit();\n//Set 'true' if user agreed consent or set 'false' otherwise\npreferences.edit().putBoolean(\"consent_agreed\",<true|false>).commit();\n//You'r done. Thank you", "language": "java", "name": "GDPR Consent" } ] } [/block]