Skip to main content

Developer README for the khanacademy adaptor

Source: https://github.com/OpenFn/adaptors/tree/main/packages/khanacademy

Language KhanAcademy

Language Pack for building expressions and operations to make HTTP calls.

Documentation

fetch

Sample configuration

{
"email": "yours",
"password": "notmine",
"consumerKey": "somEThINGkeyish",
"secretKey": "otherThiNGfSECret"
}

sample usage

fetch({
getEndpoint: 'user',
queryParams: {
email: 'thisoneuser@something.org',
},
postUrl: 'https://www.openfn.org/inbox/your-uuid',
});

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs