AIM Web Services

<back to all web services

GetInstructorScheduleRequest

GetInstructorSchedule
Requires active-e Lesson Scheduling Service

The following routes are available for this service:
POST, GET/api/GetInstructorSchedule
GetInstructorScheduleRequest Parameters:
NameParameterData TypeRequiredDescription
InstructorIdbodyint?No
DateFrombodyDateTime?No
DateTobodyDateTime?No
IncludeAvailabilitybodybool?No
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
GetInstructorScheduleResponse Parameters:
NameParameterData TypeRequiredDescription
InstructorScheduleformList<ScheduleGeneric>No
InstructorTimeInfoformInstructorTimeInfoNo
ScheduleByInstructorformList<ScheduleByInstructor>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
ScheduleGeneric Parameters:
NameParameterData TypeRequiredDescription
IsAvailabilityformboolNo
LocationformstringNo
StartTimeformDateTimeNo
EndTimeformDateTimeNo
DescformstringNo
ApptDescformstringNo
ColorformstringNo
AreaformstringNo
VirtualformboolNo
StudentsformList<StudentInfoGeneric>No
StudentInfoGeneric Parameters:
NameParameterData TypeRequiredDescription
StudentNameformstringNo
CustomerNameformstringNo
CustomerNumberformstringNo
CustomerEmailformstringNo
InstructorTimeInfo Parameters:
NameParameterData TypeRequiredDescription
StartHourformintNo
StartMinuteformintNo
EndHourformintNo
EndMinuteformintNo
IncrementformintNo
ScheduleByInstructor Parameters:
NameParameterData TypeRequiredDescription
InstructorInfoformInstructorInfoNo
InstructorScheduleformList<ScheduleGeneric>No
InstructorTimeInfoformInstructorTimeInfoNo
InstructorInfo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
EmailformstringNo
TopicformstringNo
AvailabilityInfoformInstructorAvailabilityInfoNo
InstructorAvailabilityInfo Parameters:
NameParameterData TypeRequiredDescription
SundayformboolNo
MondayformboolNo
TuesdayformboolNo
WednesdayformboolNo
ThursdayformboolNo
FridayformboolNo
SaturdayformboolNo

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

HTTP + XML

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

POST /api/GetInstructorSchedule HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetInstructorScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
  <ApiKey>String</ApiKey>
  <OAuthToken>String</OAuthToken>
  <AppId>String</AppId>
  <DeviceId>String</DeviceId>
  <Token>String</Token>
  <DateFrom>0001-01-01T00:00:00</DateFrom>
  <DateTo>0001-01-01T00:00:00</DateTo>
  <IncludeAvailability>false</IncludeAvailability>
  <InstructorId>0</InstructorId>
</GetInstructorScheduleRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetInstructorScheduleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
  <Status>
    <DomainName>String</DomainName>
    <ErrorCode>String</ErrorCode>
    <ErrorDisplayText>String</ErrorDisplayText>
    <ErrorMessage>String</ErrorMessage>
    <IpAddress>String</IpAddress>
    <Login>String</Login>
    <StatusCode>String</StatusCode>
  </Status>
  <InstructorSchedule xmlns:d2p1="http://schemas.datacontract.org/2004/07/AIM">
    <d2p1:ScheduleGeneric i:nil="true" />
  </InstructorSchedule>
  <InstructorTimeInfo i:nil="true" />
  <ScheduleByInstructor>
    <ScheduleByInstructor>
      <InstructorInfo>
        <AvailabilityInfo>
          <Friday>false</Friday>
          <Monday>false</Monday>
          <Saturday>false</Saturday>
          <Sunday>false</Sunday>
          <Thursday>false</Thursday>
          <Tuesday>false</Tuesday>
          <Wednesday>false</Wednesday>
        </AvailabilityInfo>
        <Email>String</Email>
        <Id>0</Id>
        <Name>String</Name>
        <Topic>String</Topic>
      </InstructorInfo>
      <InstructorSchedule xmlns:d4p1="http://schemas.datacontract.org/2004/07/AIM">
        <d4p1:ScheduleGeneric i:nil="true" />
      </InstructorSchedule>
      <InstructorTimeInfo i:nil="true" />
    </ScheduleByInstructor>
  </ScheduleByInstructor>
</GetInstructorScheduleResponse>