owocr
owocr
A wrapper in Crystal for the OwO What's This? file sharing service.
Instructions (Developers)
- Add this as a dependency to your
shards.yml
:
dependencies:
owocr:
github: whats-this/owocr
branch: master # as of now this requires 0.24.2 at the very least
- Run
crystal deps
orshards update
- Check the usage below
Usage
First a client is needed:
require "owocr"
client = OwO::WhatsThis.new "token", "optional user-agent for the requests", "optional api url"
You will then need to utilise one of the methods as listed:
OwO::WhatsThis#shorten(url : String|URI) : String
- Shortens the given URL or URI and returns the shortened ID.OwO::WhatsThis#upload(first : UploadData, second : UploadData?, third : UploadData? = nil) : Tuple(UploadedFileData?, UploadedFileData?, UploadedFileData?)
- Uploads the file(s) and returns the uploaded file(s).
For more in-depth explanation of these, you can go to the OwO.codes API page.
Repository
owocr
Owner
Statistic
- 2
- 0
- 0
- 0
- 1
- over 6 years ago
- March 15, 2018
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 23:27:19 GMT
Languages