GET | /api/ICSCalendar |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AIM.WebService
Namespace Global
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 Overridable Property ApiKey As String
'''<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 Overridable Property OAuthToken As String
'''<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 Overridable Property DeviceId As String
'''<Summary>
'''An identifier for your integration
'''</Summary>
<DataMember>
<ApiMember(DataType:="string", Description:="An identifier for your integration", IsRequired:=true, Name:="AppId", ParameterType:="Header")>
Public Overridable Property AppId As String
End Class
'''<Summary>
'''ICSCalendarRequires active-e Lesson Scheduling Service
'''</Summary>
<DataContract>
Public Partial Class ICSCalendarRequest
Inherits BaseRequest
<DataMember>
Public Overridable Property InstructorId As Integer
<DataMember>
Public Overridable Property LocationId As Long
End Class
End Namespace
End Namespace
VB.NET ICSCalendarRequest DTOs
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