GET | /api/ICSCalendar |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using AIM.WebService;
namespace AIM.WebService
{
[DataContract]
public partial class BaseRequest
{
///<summary>
///This is your AIM API Key provided by Tri-Tech
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="Header")]
public virtual string ApiKey { get; set; }
///<summary>
///The OAuthToken token return by AeServices30
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header")]
public virtual string OAuthToken { get; set; }
///<summary>
///The Device ID of the Mobile Device. Not used for non-mobile devices.
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header")]
public virtual string DeviceId { get; set; }
///<summary>
///An identifier for your integration
///</summary>
[DataMember]
[ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header")]
public virtual string AppId { get; set; }
}
///<summary>
///ICSCalendarRequires active-e Lesson Scheduling Service
///</summary>
[DataContract]
public partial class ICSCalendarRequest
: BaseRequest
{
[DataMember]
public virtual int InstructorId { get; set; }
[DataMember]
public virtual long LocationId { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/ICSCalendar HTTP/1.1 Host: active-ewebservice.biz Accept: application/xml