Alexa.NET.Profile 1.0.0

A simple .NET Core library for handling Alexa skills using the Customer and Person Profile APIs

Install-Package Alexa.NET.Profile -Version 1.0.0
dotnet add package Alexa.NET.Profile --version 1.0.0
<PackageReference Include="Alexa.NET.Profile" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alexa.NET.Profile --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Alexa.NET.Profile

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

Asking your user for consent to get customer information

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();

Alexa.NET.Profile

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

Asking your user for consent to get customer information

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();

Release Notes

Introduction of Person Profile API

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 256 6/20/2020