
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Format requests to the Schoology API
npm i schoology -S
To consume the Schoology API, you'll need an API key and secret. Find these by logging in to schoology and navigating to /api
(typically https://app.schoology.com/api or https://[your district].schoology.com/api)
Instantiate the client like this:
import SchoologyAPI from 'schooology'
const client = new SchoologyAPI(key, secret, site_base?, api_host?)
key
and secret
are required. If you log in to a unique district website eg. https://district123.schoology.com then send that as the third argument.
You probably don't need to send api_host
but it can be overridden as the fourth argument here.
Obtain a request token
await client.getRequestToken()
The SchoologyAPI instance stores the response token for subsequent requests.
Complete Oauth flow
This means redirecting the user to login at their schoology site where they will be prompted to approve access to their schoology account. Use SchoologyAPI to generate the correct redirect URL like this:
const url = client.getConnectURL(return_url)
After the user approves access, the schoology site will redirect the user back to return_url
.
Exchange the authorized request token for an access token.
await client.getAccessToken()
The SchoologyAPI instance stores the response token for subsequent requests.
Make requests!
const userInfo = await client.makeRequest('get', '/app-user-info')
FAQs
Format requests to the Schoology API
The npm package schoology receives a total of 12 weekly downloads. As such, schoology popularity was classified as not popular.
We found that schoology demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.