Hi All,
I am not sure if this is the right place to post
const api = require(‘node-gitlab-api’) ({
{
url: ‘https://….’,
token: ‘…’
}
})
function js_interops(api) {
api.projects.all( {max_pages: 1,
per_page: 5
})
.then((projects) => {
for (project of projects) {
console.log(project)
}
}
}
I did the first part like
(def gitlab (js/require "node-gitlab-api" (clj->js {:url "https://gitlab.com"
:token "<some-token>"
})))
I am having a problem getting this translate to ClojureScript especially the promise library in ClojureScript in the 2nd part.
Any recommendation on how to best handle this?
Any guide/pointer is greatly appreciated.