I have a function, which takes a number as an argument. I was wondering how I could use this number to pass into a url which will then be used in a GET request.
Below is some of my code, the {{}} brackets below didn't work, I also tried template literals which for some reason also didn't work 'https://www.mywebsite.com/api/v2/${urlID}/fonts.json
'
function getID (ID) {
var urlID = this.ID;
var request = require("request");
var options = {
method: 'GET',
url: 'https://www.mywebsite.com/api/v2/{{urlID}}/fonts.json',
};