modulepackage
2.0.0+incompatible
Repository: https://github.com/harnish/agileapi.git
Documentation: pkg.go.dev
# README
This is an Object for working with LimeLight "Agile" Cloud Storage Platform via the jsonrpc and post api calls.
package main
import (
"fmt"
"github.llnw.net/jharnish/agileapi.v2"
)
func main() {
AgileUser := "myname"
AgilePassword := "mypassword"
Uplaodhost := "http://listen-l.upload.llnw.net"
debug := true
path := "/agileapi-test/"
filename := "test.txt"
agileapi := agileapi.New(AgileUser, AgilePassword, UploadHost, debug)
//this is no longer needed with the recursive flag being set.
//agileapi.MkDir2(path)
data, err := os.Open(filename)
if err != nil {
fmt.Println(err)
}
fi, _ := data.Stat()
err := agileapi.UploadFileStream(path, filename, data)
if err != nil {
fmt.Println("Error Uploading")
fmt.Println(err)
}
}
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
{"jsonrpc": "2.0", "id": 6183213937838991992, "result": {"code": -10001}}.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author