mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-19 01:51:28 +00:00
Update README
This commit is contained in:
@@ -54,6 +54,7 @@ After which you can use `work_haste` to send hastes to that server instead.
|
|||||||
You can also use `Haste` as a library to upload hastes:
|
You can also use `Haste` as a library to upload hastes:
|
||||||
|
|
||||||
``` ruby
|
``` ruby
|
||||||
|
require 'haste'
|
||||||
uploader = Haste::Uploader.new
|
uploader = Haste::Uploader.new
|
||||||
uploader.upload_raw 'this is my data' # key
|
uploader.upload_raw 'this is my data' # key
|
||||||
uploader.upload_path '/tmp/whaaaa' # key
|
uploader.upload_path '/tmp/whaaaa' # key
|
||||||
|
|||||||
Reference in New Issue
Block a user