Alexa.NET.Profile

June 20, 2020 ยท View on GitHub

Small helper library for Alexa.NET based skills to access the customer and person profile APIs

using Alexa.NET.Response

var response = ResponseBuilder.TellWithAskForPermissionConsentCard(
    "sorry, but you have to give me consent",
    new[]{
        CustomerProfilePermissions.FullName,
        CustomerProfilePermissions.Email
    }
);

Getting customer profile information

using Alexa.NET.Profile

var client = new CustomProfileClient(skillRequest);
var fullName = await client.FullName();
var email = await client.Email();

Getting person profile information

using Alexa.NET.Profile

var client = new PersonProfileClient(skillRequest);
var fullName = await client.FullName();