Oh I see! Your question is more syntax than HubSpot. I missed the line where you mentioned your vidoffset variable.
Apologies in advance if I am still not understanding your question.
Are you trying to perform a loop? You could store the vidOffset in a separate variable outside the loop then update it on every response.
let vidOffset = 0;
while(vidOffset !== 0) {
// perform API request
// on response, update the vidOffset value
// if the response' has-more is false, set the vidOffset to 0 to break the loop
}
If you are asking how to simply add the value of your response in the string, there are a couple ways:
Thanks for the suggestions. Ive gotten it working and it was indeed just a syntax thing. I was literally just looking for how to access a query string parameter from inside the function and while it was in fact staring me in the face…