![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
canvas-request
Advanced tools
The following parameters are required either as environment variables or as parameters in the Parameter Store:
If they are included in the parameter store, include the parameter_header in the config (see below) and set the credential_method to aws_ssm. For example, if I have a parameter named "lms-event-integration.dev.CANVAS_CLIENT_ID" and another named "lms-event-integration.dev.CANVAS_CLIENT_SECRET" then my parameter_header would be "lms-event-integration.dev".
If you are not using the parameter store, you must have those values set as environment variables.
var canvas = require('./index.js')
// var canvas_token = '<place your canvas token here>'
var canvas_config = {
// 'token': canvas_token, // If you include the token in the config, you don't need the CANVAS_CLIENT_ID, CANVAS_CLIENT_SECRET or the CANVAS_REFRESH_TOKEN. Omit to use aws_ssm or env_vars
'credential_method': 'aws_ssm', // Either aws_ssm or env_vars
'aws': { // include if using aws_ssm
'parameter_header': 'lms-event-integration.dev',
'region': 'us-west-2',
'aws_params_location': 'file' // Either file (~/.aws/credentials) or env_vars
}
}
var requestOptions = {
'url': 'https://byu.test.instructure.com/api/v1/accounts/1/users',
'method': 'GET',
'headers': {
'Accept': 'application/json'
}
}
canvas(requestOptions, canvas_config, function(err, res, body) {
if(err) {
console.log(err)
} else {
console.log(body)
}
})
NOTE: "aws-ssm" is used to fetch parameters stored in the Amazon Parameter Store. For more information, see http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html and http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SSM.html.
For more information on Canvas APIs see https://canvas.instructure.com/doc/api/index.html
FAQs
npm module for making api requests to canvas
The npm package canvas-request receives a total of 0 weekly downloads. As such, canvas-request popularity was classified as not popular.
We found that canvas-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.