Skip to content

Template repository for projects based on the Bb-rest-helper library

License

Notifications You must be signed in to change notification settings

jgregori/Bb_rest_helper_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bb_rest_helper_template

Template repository for projects based on the Bb-rest-helper library

Project name

Project description

Setup

This script was created in Python 3, make sure Python3 is installed and working in your system. Here are the steps to make it work.

  1. Download or clone the repository.
  2. Create a virtual environment and activate it.
#env creation
python3 -m venv env

#env activation
source env/bin/activate
  1. Install dependencies, either from 'requirements.txt' or manually.
#dependencies from requeriments.txt
pip3 -r requeriments.txt

#dependencies manually
pip3 install Bb-rest-helper
pip3 install jupyter
  1. In the developer portal, register a new application and retrieve the KEY and SECRET values. Configure this application in Learn with an user with sufficient priviledges to

    • list required priviledges
    • list required priviledges
    • list required priviledges

⚠️ Do NOT use an admin user to register your application!

More information can be found in Anthology´s developer documentation page

  1. Within root, create a folder called "credentials" inside of that folder, create a file named "learn_config.json" and fill it with the following template with the KEY and SECRET values. For convenience, such folder and template files are created in this template repository.
{
    "url":"Learn Server url",
    "key":"KEY from dev portal",
    "secret":"SECRET from dev portal"
}

Usage

Once setup is complete, the script can be run from a terminal.

  1. Open a terminal and navegate to the root directory
  2. Run the script with Python3
Python3 app.py

Script results

About

Template repository for projects based on the Bb-rest-helper library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published