textiot
Version:
A framework for building web and native (IoT) Dapps on the IPFS network
17 lines (16 loc) • 440 B
YAML
special:
sagas:
add_thread:
js_http_client:
code: |
export function * createThread(name, key) {
const thread = yield call([textile.threads, "add"], name, key)
return thread
}
get_file:
js_http_client:
code: |
export function * getFile(hash) {
const file = yield call([textile.file, "content"], hash)
return file
}