greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.47k stars 441 forks source link

Create and document API #159

Closed tim-smart closed 10 years ago

tim-smart commented 10 years ago

Back with USO, I had a server that listened to Github Webhooks and updated my userscripts for each commit. I had to do an ugly hack scraping the USO website to upload my changes.

I'm wondering if you could provide an API for managing scripts. At this stage nothing more than Basic Authentication should be needed.

cletusc commented 10 years ago

You can actually import scripts by URL which syncs automatically--just use the "raw" link from your GH repo.

JasonBarnabe commented 10 years ago

And #118 is about having Greasy Fork work with webhooks.

I'm not opposed to having an API, but seems like that'd be the better choice for you.

JasonBarnabe commented 10 years ago

Webhook support is in, so go try that. If you have another reason to have an API, feel free to reopen.