AIM Web Services

<back to all web services

GetSchedulingCalendarRequest

GetSchedulingCalendar
Requires active-e Lesson Scheduling Service. This API call was accidentally named GetSchedulingCalender in the past.

The following routes are available for this service:
GET/api/GetSchedulingCalendar
GET/api/GetSchedulingCalender
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

            <DataMember>
            <ApiMember(DataType:="string", Name:="OAuthToken", ParameterType:="header")>
            Public Overridable Property OAuthToken As String
        End Class

        <DataContract>
        Public Partial Class BaseResponse
            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="BaseResponseResult", Description:="", Name:="Status", ParameterType:="body")>
            Public Overridable Property Status As BaseResponseResult

            <DataContract>
            Public Partial Class BaseResponseResult
                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="StatusCode", ParameterType:="body")>
                Public Overridable Property StatusCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="Login", ParameterType:="body")>
                Public Overridable Property Login As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorCode", ParameterType:="body")>
                Public Overridable Property ErrorCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorDisplayText", ParameterType:="body")>
                Public Overridable Property ErrorDisplayText As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorMessage", ParameterType:="body")>
                Public Overridable Property ErrorMessage As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="DomainName", ParameterType:="body")>
                Public Overridable Property DomainName As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="IPAddress", ParameterType:="body")>
                Public Overridable Property IpAddress As String
            End Class
        End Class

        '''<Summary>
        '''GetSchedulingCalendarRequires active-e Lesson Scheduling Service. This API call was accidentally named GetSchedulingCalender in the past.
        '''</Summary>
        <DataContract>
        Public Partial Class GetSchedulingCalendarRequest
            Inherits BaseRequest
            '''<Summary>
            '''The type of lessons to get a schedule for.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="The type of lessons to get a schedule for.", Format:="int64", IsRequired:=true, Name:="TypeId", ParameterType:="query")>
            Public Overridable Property TypeId As Long

            '''<Summary>
            '''If sent, lessons from this date/time onward will be returned. Otherwise the current date/time is used.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="If sent, lessons from this date/time onward will be returned. Otherwise the current date/time is used.", Format:="date", Name:="DateFrom", ParameterType:="query")>
            Public Overridable Property DateFrom As String

            '''<Summary>
            '''If sent, lessons from before this date/time will be returned. Otherwise the DateFrom plus one week is used.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="If sent, lessons from before this date/time will be returned. Otherwise the DateFrom plus one week is used.", Format:="date", Name:="DateTo", ParameterType:="query")>
            Public Overridable Property DateTo As String

            '''<Summary>
            '''If sent, only lessons taught by the sent instructor will be returned.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, only lessons taught by the sent instructor will be returned.", Format:="int32", Name:="InstructorId", ParameterType:="query")>
            Public Overridable Property InstructorId As Nullable(Of Integer)

            '''<Summary>
            '''If sent, lessons taught at the sent location will be returned.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, lessons taught at the sent location will be returned.", Format:="int64", Name:="LocationId", ParameterType:="query")>
            Public Overridable Property LocationId As Nullable(Of Long)
        End Class

        <DataContract>
        Public Partial Class GetSchedulingCalendarResponse
            Inherits BaseResponse
            Public Sub New()
                Availabilities = New List(Of AvailabilityInfo)
                GroupClasses = New List(Of GroupClassInfo)
                TimeIncrementsByInstructor = New List(Of TimeIncrementByInstructor)
            End Sub

            <DataMember>
            Public Overridable Property Availabilities As List(Of AvailabilityInfo)

            <DataMember>
            Public Overridable Property GroupClasses As List(Of GroupClassInfo)

            <DataMember>
            Public Overridable Property TimeIncrement As Integer

            <DataMember>
            Public Overridable Property TimeIncrementsByInstructor As List(Of TimeIncrementByInstructor)

            <DataContract>
            Public Partial Class AvailabilityInfo
                <DataMember>
                Public Overridable Property StartTime As Date

                <DataMember>
                Public Overridable Property StartTimeString As String

                <DataMember>
                Public Overridable Property Length As Integer

                <DataMember>
                Public Overridable Property InstructorId As Integer

                <DataMember>
                Public Overridable Property LocationId As Long
            End Class

            <DataContract>
            Public Partial Class TimeIncrementByInstructor
                <DataMember>
                Public Overridable Property InstructorId As Integer

                <DataMember>
                Public Overridable Property TimeIncrement As Integer
            End Class

            <DataContract>
            Public Partial Class GroupClassInfo
                Public Sub New()
                    DayTimeInfo = New List(Of DayTimeInfoObj)
                End Sub

                <DataMember>
                Public Overridable Property DayTimeInfo As List(Of DayTimeInfoObj)

                <DataMember>
                Public Overridable Property StartDate As Date

                <DataMember>
                Public Overridable Property EndDate As Date

                <DataMember>
                Public Overridable Property Guid As Guid

                <DataMember>
                Public Overridable Property Length As Integer

                <DataMember>
                Public Overridable Property InstructorId As Integer

                <DataMember>
                Public Overridable Property LocationId As Long

                <DataMember>
                Public Overridable Property ClassName As String

                <DataMember>
                Public Overridable Property ClassDesc As String

                <DataMember>
                Public Overridable Property ClassSummary As String

                <DataMember>
                Public Overridable Property MaxClassMembers As Integer

                <DataMember>
                Public Overridable Property CurrentClassMembers As Integer

                <DataMember>
                Public Overridable Property Notes As String
            End Class

            <DataContract>
            Public Partial Class DayTimeInfoObj
                <DataMember>
                Public Overridable Property WeekDayInt As Integer

                <DataMember>
                Public Overridable Property WeekDay As String

                <DataMember>
                Public Overridable Property StartTime As Date

                <DataMember>
                Public Overridable Property StartTimeString As String
            End Class
        End Class
    End Namespace
End Namespace

VB.NET GetSchedulingCalendarRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/GetSchedulingCalendar HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Availabilities":[{"StartTimeString":"1/1/0001 12:00:00 AM","Length":0,"InstructorId":0,"LocationId":0}],"GroupClasses":[{"DayTimeInfo":[{"WeekDayInt":0,"WeekDay":"String","StartTimeString":"1/1/0001 12:00:00 AM"}],"Guid":"00000000000000000000000000000000","Length":0,"InstructorId":0,"LocationId":0,"ClassName":"String","ClassDesc":"String","ClassSummary":"String","MaxClassMembers":0,"CurrentClassMembers":0,"Notes":"String"}],"TimeIncrement":0,"TimeIncrementsByInstructor":[{"InstructorId":0,"TimeIncrement":0}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}