Skip to content

Start exploring the APIs right away with this fully-functional application that works right out of the box. Using your browser, you can get started with running any GET request to see how data is returned; try more advanced calls (creating and updating information) by pointing your preferred API console at it (e.g., Postman or Fiddler). You will…

Notifications You must be signed in to change notification settings

PearsonDevelopersNetwork/LearningStudio-HelloWorld-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Learning Studio Hello World in Java

Prerequisites

Build Environment

  • Apache Maven should be installed and configured.

Server Environment

Application

  • This application assumes you're running an application server (i.e. Tomcat).

Java

Our libraries and this application require Java 6 or greater.

Networking

The LearningStudio APIs have no special firewall or IP address restrictions. Simply ensure your machine or network allows outbound connections to api.learningstudio.com. Unless you are on a highly secured corporate network, this is rarely be a problem. Note, the API hostname does not respond to PINGs.

LearningStudio API Keys

You will need to register on the Pearson Developers Network and create an application to obtain API keys and sandbox courses. When you create an application, you'll receive an email (within 5 minutes) containing your Application ID, two sandbox courses, and two sandbox users (a teacher and a student). You will also get the campus keys for the Sandbox Campus.

Please be sure to read the documentation to better understand our data model and authentication scheme.

Installation

Application Configuration

Once you obtain your API keys and sandbox credentials (see above), you'll need to add these values to the src/main/resources/com/pearson/pdn/learningstudio/helloworld/OAuthServlet.properties file.

Run Locally

Run mvn tomcat:run to launch the application on your local machine. You should be able to access this application at localhost: http://localhost:8080/helloworld

Server Deployment

Build

Run mvn clean package to compile the application and assemble a war file.

Server

Simply copy the target/helloworld.war file to your server. You should be able to access this application from an address like:

http://yourserver.com/helloworld

Operation

Once installed and configured, go to the helloworld folder in your browser, e.g.:

http://yourserver.com/helloworld/index.jsp

The index.jsp file describes how to use the application.

License

Copyright (c) 2014 Pearson Education Inc. Created by Pearson Developer Services

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Start exploring the APIs right away with this fully-functional application that works right out of the box. Using your browser, you can get started with running any GET request to see how data is returned; try more advanced calls (creating and updating information) by pointing your preferred API console at it (e.g., Postman or Fiddler). You will…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages