Files
ersatztv/ErsatzTV.Infrastructure/Plex/IPlexServerApi.cs
T
2021-02-08 21:13:53 -06:00

16 lines
414 B
C#

using System.Threading.Tasks;
using ErsatzTV.Infrastructure.Plex.Models;
using Refit;
namespace ErsatzTV.Infrastructure.Plex
{
[Headers("Accept: application/json")]
public interface IPlexServerApi
{
[Get("/library/sections")]
public Task<PlexMediaContainerResponse<PlexLibraryResponse>> GetLibraries(
[Query] [AliasAs("X-Plex-Token")]
string token);
}
}