add network file script
This commit is contained in:
19
community/dropbox-notes.lua
Normal file
19
community/dropbox-notes.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-- name = "Network file"
|
||||||
|
|
||||||
|
function on_resume()
|
||||||
|
local args = aio:get_args()
|
||||||
|
|
||||||
|
if next(args) == nil then
|
||||||
|
ui:show_text("Tap to enter text file URL")
|
||||||
|
else
|
||||||
|
http:get(args[1])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_click()
|
||||||
|
aio:show_args_dialog()
|
||||||
|
end
|
||||||
|
|
||||||
|
function on_network_result(result)
|
||||||
|
ui:show_text(result)
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user