import { Redmine } from "https://deno.land/x/bluemine@0.1.4/mod.ts";
Helper to communicate with Redmine REST API.
Examples
Example 1
Example 1
const apiKey = Deno.env.get('REDMINE_API_KEY')
const endpoint = Deno.env.get('REDMINE_API_ENDPOINT')
const redmine = new Redmine({ apikey, endpoint })
const userList = await redmine.users.list({ limit: 20, offset: 5 })
const { id } = userList.filter(
({ mail }) => mail === 'old.mail@example.com'
)
await redmine.users.update(id, { mail: 'new.mail@example.com' })
Constructors
new
Redmine(unnamed 0: Redmine["Config"])import { type Redmine } from "https://deno.land/x/bluemine@0.1.4/mod.ts";