Alexa.NET.CustomerProfile 2.1.1

A simple .NET Core library for handling Alexa skills using the Customer Profile API

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

Alexa.NET.CustomerProfile

Small helper library for Alexa.NET based skills to access the customer contact API

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.Response

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

Alexa.NET.CustomerProfile

Small helper library for Alexa.NET based skills to access the customer contact API

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.Response

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

Release Notes

Correct issue with permission format on address and postal code (thanks daledev-uk)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.1.1 101 11/12/2019
2.1.0 181 8/10/2019
2.0.0 443 1/1/2019
1.0.0 497 8/3/2018
0.1.0 216 8/3/2018