-
-
Notifications
You must be signed in to change notification settings - Fork 877
Adding new media hosts
larsjohnsen edited this page May 31, 2019
·
4 revisions
So you want to add a new media hosting upload service to RES? Great, here's what you do. First, make sure you meet the requirements:
- You have a public API that is rate-limited per-user, rather than per-application (or you can provide an unlimited API key)
- Files hosted on your website have RES expando support (or native Reddit expando support)
- Users who click links to your files on Reddit can view them in the browser (rather than triggering a download)
Sounds good? Great, here's what you do. First, make sure you have a GitHub account and are familiar with git and the GitHub pull request workflow. Fork RES and get started by...
Copy the example host to lib/modules/hosts/yourwebsite.js
.
You are encouraged to read through the code for other hosts in lib/modules/hosts/
for reference.
That's all you have to do! Test it and submit a pull request.