Skip to content

Latest commit

 

History

History

moodle-client-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@ava-pro/moodle-client-js

Exemplo

  • Listando as conversas
import { MoodleClient } from "@ava-pro/moodle-client-js"

async function main() {
  const client = new MoodleClient("https://school.moodledemo.net")

  await client.login("student", "moodle")

  client.getConversations().then((conversations) => {
    conversations.forEach(({ id }) => {
      console.log(`id: ${id} | name: ${name} | members count: ${membercount}`)
    })
  })
}

main()