Alexa.NET.ListManagement 1.1.0

A simple .NET Core library for handling lists within Alexa skills

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

Alexa.NET.ListManagement

A simple .NET Core library for handling lists within Alexa skills

Before you start make sure you have An Alexa Skill with appropriate permissions (if you're unsure of how to do this - the docs are here)

Initialising your list client

This assumes you're already using Alexa.NET for your Alexa skill access

var accessToken = skillRequest.Context.System.ApiAccessToken;
var client = new Alexa.NET.ListManagementClient(accessToken);

&nbsp;

Output all lists

var lists = await client.GetListsMetadata();
foreach(var list in lists)
{
    Console.WriteLine($"{list.ListId} - {list.Name}");
}

&nbsp;

Output items for a single list

var list = await client.GetList(listId);
foreach(var item in list.Items)
{
    Console.Writeine(item.Value);
}

&nbsp;

Add Skill Event support to Alexa.NET

 RequestConverter.RequestConverters.Add(new ListSkillEventRequestTypeConverter());

&nbsp;

Alexa.NET.ListManagement

A simple .NET Core library for handling lists within Alexa skills

Before you start make sure you have An Alexa Skill with appropriate permissions (if you're unsure of how to do this - the docs are here)

Initialising your list client

This assumes you're already using Alexa.NET for your Alexa skill access

var accessToken = skillRequest.Context.System.ApiAccessToken;
var client = new Alexa.NET.ListManagementClient(accessToken);

&nbsp;

Output all lists

var lists = await client.GetListsMetadata();
foreach(var list in lists)
{
    Console.WriteLine($"{list.ListId} - {list.Name}");
}

&nbsp;

Output items for a single list

var list = await client.GetList(listId);
foreach(var item in list.Items)
{
    Console.Writeine(item.Value);
}

&nbsp;

Add Skill Event support to Alexa.NET

 RequestConverter.RequestConverters.Add(new ListSkillEventRequestTypeConverter());

&nbsp;

Release Notes

update to netstandard2.0

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 53 8/10/2019
1.0.30 344 2/22/2018
0.2.22-pre 253 2/22/2018
0.2.15-pre 306 12/18/2017