Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VIDEOTITLE = 'Dystopia teaser';
- BODY = "This is the teaser of my new ball machine Dystopia I'm working on. Enjoy!";
- $.getJSON('/json-api/showInstructable?id='+document.URL.split('/')[4]).done(function(data){
- VIDEOID = data.id;
- STEPID = data.steps[0].id;
- $.post('/json-api/saveInstructable',{json: JSON.stringify({
- "title": VIDEOTITLE,
- "status": "PUBLISHED",
- "steps": [
- {
- "id": STEPID,
- "title": VIDEOTITLE,
- "body": BODY,
- "stepIndex": 0,
- "files": []
- }
- ],
- "files": [],
- "collaborators": [],
- "enteredContests": [],
- "coverImageUpdated": false,
- "duplicateTitleTest": [
- "unchecked"
- ],
- "id": VIDEOID
- })});
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement