Skip to content

Instantly share code, notes, and snippets.

@heaversm
Created August 14, 2019 19:48
Show Gist options
  • Save heaversm/be6182cb4f3c5bcd4385e264ed086cd2 to your computer and use it in GitHub Desktop.
Save heaversm/be6182cb4f3c5bcd4385e264ed086cd2 to your computer and use it in GitHub Desktop.
Get Runway Model Info as JSON
let modelOutput;
fetch('http://localhost:8000/info')
.then(response => response.json())
.then(output => {
modelOutput = output;
// use the output in your project
console.log(output);
//to copy it from the console, right click the object in chrome and choose 'save as global variable'
//then type copy(temp1) and paste the clipboard contents into a .json file
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment