Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 464 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 464 Bytes

@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()