Looking for a way to interface with the gitlab API

Hi friends, is it possible to make HTTP requests with $(eval)? I’ve tried a couple different methods I would usually use with JS, like “new XMLHttpRequest()” and “fetch()”, but running it in a command results in Nightbot saying that those methods aren’t defined. As the title says I’m trying to use the gitlab API to edit a file in one of my repositories when the command gets run. Thanks in advance!

Unfortunately $(eval) doesn’t support XHR. The most you can do is a GET with $(urlfetch).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.