Skip to content

Instantly share code, notes, and snippets.

@whargrove
whargrove / LTILaunchExample.java
Last active August 29, 2015 13:58
Content Loader
ContextManager cm = ContextManagerFactory.getInstance();
Context context = cm.getContext();
Id bbCourseId = context.getCourseId();
Id bbContentId = context.getContentId();
CourseMembership courseMembership = context.getCourseMembership();
BasicLTILauncher launcher = new BasicLTILauncher( ldcCourseLtiUrl, toolProviderKey, toolProviderSecret, resourceLinkId );
launcher.addCurrentUserInformation(true, true, true);