Method
post_form
(pathname string, params map[string]string, data map[string]string, resp interface{})
Source from the content-addressed store, hash-verified
| 122 | } |
| 123 | |
| 124 | func (d *Terabox) post_form(pathname string, params map[string]string, data map[string]string, resp interface{}) ([]byte, error) { |
| 125 | return d.request(pathname, http.MethodPost, func(req *resty.Request) { |
| 126 | if params != nil { |
| 127 | req.SetQueryParams(params) |
| 128 | } |
| 129 | req.SetFormData(data) |
| 130 | }, resp) |
| 131 | } |
| 132 | |
| 133 | func (d *Terabox) getFiles(dir string) ([]File, error) { |
| 134 | page := 1 |
Tested by
no test coverage detected