GET | /v2/{Apikey}/club/{StoreID}/classschedule | Get Class Schedule | Specify ToDate/FromDate (max 7 days) to get a list of classes within a date range. Omitting dates will retrieve classes for today. |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ClubReady.Web.Api.Scheduling.Model;
using ClubReady.Core.Api.Models;
using ClubReady.Web.Api;
namespace ClubReady.Core.Api.Models
{
public partial class ApiDtoBase
{
public virtual string ApiKey { get; set; }
public virtual int? StoreId { get; set; }
public virtual int? ChainId { get; set; }
}
public partial class GetClassScheduleRequestDto
: ApiDtoBase
{
public virtual DateTime? FromDate { get; set; }
public virtual DateTime? ToDate { get; set; }
public virtual int? FilterByCategoryId { get; set; }
}
}
namespace ClubReady.Web.Api
{
public enum RestrictedResourceType
{
Store,
Chain,
User,
Undefined,
}
}
namespace ClubReady.Web.Api.Scheduling.Model
{
public partial class GetClassScheduleRequestV2
: GetClassScheduleRequestDto, IRestrictedApiRequest
{
public virtual string ApiKey { get; set; }
public virtual int? StoreId { get; set; }
public virtual DateTime? FromDate { get; set; }
public virtual DateTime? ToDate { get; set; }
///<summary>
/// Id of CategoryNames to filter results by
///</summary>
[ApiMember(DataType="integer", Description=" Id of CategoryNames to filter results by", Name="FilterByCategoryId", ParameterType="query")]
public virtual int? FilterByCategoryId { get; set; }
public virtual int? RestrictedId { get; set; }
public virtual RestrictedResourceType RestrictedResourceType { get; set; }
}
}
C# GetClassScheduleRequestV2 DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v2/{Apikey}/club/{StoreID}/classschedule HTTP/1.1 Host: clubready.com Accept: text/csv