Alexa.NET.CustomerProfile 2.1.1

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

Suggested Alternatives

Alexa.NET.Profile

Additional Details

CustomerProfile has now become part of the Alexa.NET.Profile package, which also includes the Person 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)

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Alexa.NET.CustomerProfile:

Package Downloads
Bot.Builder.Community.Adapters.Alexa.Core
Core package containing Attachment types and turn context extensions for when using Bot Builder .NET Alexa Adapter to allow for a bot to be used for Alexa skills.
Ask.Sdk.Core
Core SDK package that contains the basic components and default implementations of ASK SDK for .Net Core.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Alexa.NET.CustomerProfile:

Repository Stars
BotBuilderCommunity/botbuilder-community-dotnet
Part of the Bot Builder Community Project. Repository for extensions for the Bot Builder .NET SDK, including middleware, dialogs, recognizers and more.

Version History

Version Downloads Last updated
2.1.1 18,893 11/12/2019
2.1.0 320 8/10/2019
2.0.0 732 1/1/2019
1.0.0 598 8/3/2018
0.1.0 320 8/3/2018