Earn 4,500 ($45.00)
Create a basic replit client that supports CRUD on replits
Bounty Description
Problem Description
I'm building a website to teach coding to students. I want students to click a link and join a specific lesson's coding environment. I need to automatically create a repl for each lesson with a template, title, description, visibility, and invite users.
I need someone to create a replit client in typescript for me to use in my website.
A python flask proxy is also ok, as long as it has the follow operations.
Requirements
- Create repl, template, title, description
- Invite users with repl id
- Read repl, find by title, by id, by folder
- update repl
- delete repl
? = means optional
example Interface
Create a new coding environment client
let client = new ReplitClient(credentials);
Create a new coding environment:
let { id, url } = await client.createRepl(name, description, folder, visibility, [users?]);
let { id, title, description } = await client.getRepl(id);
let { repls } = await client.getRepls([ids]);
let { repls } = await client.findRepls(title?, folder?);
// All are optional
// Only update provided
Update an existing coding environment:
await client.updateRepl(id, title?, description?, folder?, visibility, [users?]);
Delete a coding environment:
await client.deleteRepl(id);