JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

JavaScript

let curator_name;
let curators = prompt("what are the usernames of the users you want to invite?");
let studio = prompt("what is the ID of the studio? (you can find it in the URL)", "27192659");
curators = curators.split(",");
for (let i = 0; i < curators.length; i++) {
	curator_name = curators[i];
  $.ajax({
        url: '/site-api/users/curators-in/' + studio + '/invite_curator/?usernames=' + curator_name,
        type: 'PUT',
  });
}