Giter Site home page Giter Site logo

personal-data-sdk-net's Introduction

Kentico Cloud Personal Data .NET SDK

Build status NuGet Forums

Summary

The Kentico Cloud Personal Data .NET SDK is a client library used for retrieving or deleting data about your tracked visitors. You can use the SDK in the form of a NuGet package.

Prerequisites

To retrieve and delete data from Kentico Cloud via the Personal Data API, you need to have a Kentico Cloud subscription at https://app.kenticocloud.com. For more information see our documentation.

Getting User ID

Some methods of the SDK work with User ID, which identifies a specific visitor on your website. You can get this value either by parsing the content of a cookie using the Personalization SDK or by calling a JavaScript method in the code of your website. For more details, see Identifying visitors on websites.

Using the PersonalDataClient

The PersonalDataClient class is the main class of the SDK. Using this class, you can retrieve and delete visitor data stored in your Kentico Cloud project.

To create an instance of the class, you need to provide a Project ID and your Personal Data API Key. You can find both inside the Kentico Cloud app. From the app menu, choose Project settings. Then, under Development, choose API keys.

var projectId = new Guid("<YOUR_PROJECT_ID");
var apiKey = "<YOUR_PERSONAL_DATA_API_KEY>";

client = new PersonalDataClient(apiKey, projectId);

Retrieving personal data of tracked visitors

Calling a get method returns all data about the specified visitor stored in Kentico Cloud. The Response object contains:

  • an HTTP status code
  • the content of the response OR error details

Getting data by email address

var response = await client.GetByEmailAsync("[email protected]");

Getting data by User ID

var response = await client.GetByUidAsync("1a7379c4026d4614");

Deleting personal data of tracked visitors

Calling a delete method registers a deletion request on our servers. All personal data of the specified visitor is then deleted within 24 hours. The Response object contains:

Deleting data by email address

var response = client.DeleteByEmailAsync("[email protected]");

Deleting data by User ID

var response = client.DeleteByUidAsync("1a7379c4026d4614");

##Feedback & Contributing Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

Analytics

personal-data-sdk-net's People

Contributors

juraju-kentico avatar petrsvihlik avatar theramis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.