Remix in background?

Yes, I think that is what he meant. But this might cause issues like “what is the name of the new remixed project” although that can be fixed with a popup.

1 Like

That’s what I meant, I want it so:

Press button on site
Remixes project on glitch
Sends popup with details

1 Like

You can embed the remix button but add target=’_blank’ to it

1 Like

@random You can also add rel=noopener so the user doesn’t lose their place in the page
See: https://mathiasbynens.github.io/rel-noopener/

1 Like

@EddiesTech how can I get it to close the editor tab once the remix is complete?

I give you hints. Hints are good hints. Hints will help you with what you want.

Here are hints:

  • You send postage. Postage is request, yes? Send postage to special URL.
  • Special URL is for API. It has version. Only one version so you should know. Is one. Version one.
  • You want postage to go to place with project. Project is with all other projects.
  • How to know what project to remix? You need thing to identify project. Not name though. Neighbor is Bob but so is brother. Bob is not unique. You need unique. Universally unique.
  • When postage get to mailroom, it need place to go. Mailmen track down filing cabinet for project. Inside filing cabinet are folders. Postage has address for folder you want. You say something about remix?

There are hints.

Oh. Almost forgot. You need postage header. Put special key in header. Key is made for you. Is to unlock mailbox where new project go. You have passcode, yes? You have key. Is for API.

Send postage in computer terminal. Is nothing fancy. Do bicep curl to send though. Yes, bicep curl. Do curl. You need lesson on how to curl? Is easy. Use curling machine—thing called “browser”—to find how to curl.

Need to hit head with hammer? Look for “23523” with search. You find breadcrumb. Even better breadcrumb is solution to “24361” (thanks to time machine, you find number in search too).

1 Like

Okay, thanks for the hints! :smiley:

@random I come from future. You find solution.

Hmmm time travel eh?

Ok, must be the chicken I just ate that is causing me to see stuff that’s really confusing. :joy::rofl::sweat_smile:

Now I’m confused whether it’s a normal postman or the Postman API builder.

@khalby786 What is this postman? Is man who posts?

You need simple postage. Is type of request. Is postage request. You say “post” and it go postage.

You do curl like this.

I say too much.

Postman is software to test APIs by sending them requests that you can customise.

What happend to you @RA80533?

we’re all just working hard not to give too spoon-feed-y answers

1 Like

Yeah, sadly that means we have to elaborate

Yes, I thought so. :+1:

$ curl -X POST "https://api.glitch.com/v1/projects/${PROJECT_ID}/remix" -H "Authorization: ${persistentToken}"
1 Like

now you gone and said it

1 Like

well done

1 Like