Alexa.NET.CustomerProfile
2.1.1
A simple .NET Core library for handling Alexa skills using the Customer Profile API
Suggested Alternatives
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.
#r "nuget: Alexa.NET.CustomerProfile, 2.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Alexa.NET.CustomerProfile as a Cake Addin
#addin nuget:?package=Alexa.NET.CustomerProfile&version=2.1.1
// Install Alexa.NET.CustomerProfile as a Cake Tool
#tool nuget:?package=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)
Dependencies
-
.NETStandard 2.0
- Alexa.NET (>= 1.8.0)
- Newtonsoft.Json (>= 12.0.2)
Used By
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.
|