mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00

* JIRA refactors * Support JIRA onprem * Fix webhooks * More JIRA docs --- PLEASE REWRITE MEEEE --- * Drop manifest code for now * Add on-prem instructions * Remove incomplete command * Update sample config * Remove null url
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
import { readFileSync } from 'fs';
|
|
import JiraApi, { SearchUserOptions } from 'jira-client';
|
|
import * as f from 'oauth-sign';
|
|
// Step 1. Sign the request
|
|
|
|
f()
|
|
|
|
const api = new JiraApi({
|
|
host: 'localhost',
|
|
port: 9050,
|
|
oauth: {
|
|
consumer_key: '',
|
|
consumer_secret: readFileSync('jira_privatekey.pem', 'utf-8')
|
|
}
|
|
}); |