< Back

Get-PTermCourseInstances

Sat Jan 18, 2020 7:28 pm

NAME Get-PTermCourseInstances



SYNOPSIS

Returns course instances for a given term (only active course instances are returned by default).





SYNTAX

Get-PTermCourseInstances [-PopuliUri] <String> [-PopuliAuthkey] <String> -TermId <Int32> [<CommonParameters>]





DESCRIPTION

Returns course instances for a given term (only active course instances are returned by default).





PARAMETERS

-PopuliUri <String>

Set to the correct URL for your college (i.e. https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/).

This parameter is required.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PopuliAuthkey <String>

The authentication key with necessary permissions for the data you are requesting.

For more information check the Populi API reference. This parameter is required.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TermId <Int32>

The numeric ID of the term you're interested in. One method for optaining the term id is running the

Get-CurrentAcademicTerm cmdlet. For more information check the Populi API reference.

This parameter is required.



Required? true

Position? named

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Returns PowerShell objects:

InstanceId

CourseId

Name

Abbrv

Section

PrimaryFacultyId

PrimaryFacultyName

Description

DepartmentId

DepartmentName

Credits

Hours

DeliveryMethodId

DeliveryMethodName

CampusId

CampusName

StartDate

EndDate

OpenToStudentsDate

ClosedToStudentsDate

MaxEnrolled

MaxAuditors

Published

Programs

ProgramId

ProgramName





NOTES





Author: Matthew Rehm

Creation Date: 12/06/2018

Updated: 04/11/2019



-------------------------- EXAMPLE 1 --------------------------



Get-PTermCourseInstances -PopuliUri 'https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/ -PopuliAuthkey '1234567890'

-TermId '7289900'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>#Store your Populi Credentials in a hash table:



$PopuliCredentials = @{

PopuliURI = https://<YOUR_SUBDOMAIN_HERE>.populiweb.com/api/

PopuliAuthkey = '1ReallyLongAlphaNumericSequence'

}

Get-PTermCourseInstance @PopuliCredentials -TermId '162800'











RELATED LINKS