Hey All
We recently got the Self Hosted Laserfiche API installed. It is working great.
I am able to use the API to download Electronic Documents from the repository fine
func (c *Client) DownloadEntry(ctx context.Context, downloadOpts DownloadEntryOpts) ([]byte, error) { rangeHeader := map[string]string{} if downloadOpts.DownloadChunk { rangeHeader["Range"] = fmt.Sprintf("bytes=%d-%d", downloadOpts.Start, downloadOpts.End) } resp, err := c.restyClient.R(). SetContext(ctx). SetAuthToken(c.AccessToken). SetHeaders(rangeHeader). SetPathParams(map[string]string{ "entryID": strconv.Itoa(downloadOpts.EntryID), "repo": c.Repo, }). Get("/Repositories/{repo}/Entries/{entryID}/Laserfiche.Repository.Document/edoc") if err != nil { return nil, err } if resp.StatusCode() != 200 && resp.StatusCode() != 206 { return nil, fmt.Errorf("Got status %d from %s", resp.StatusCode(), resp.Request.URL) } return resp.Body(), nil }
If an entry doesn't have an electronic document component, but instead has an image, can the Rest API also download that page/image? I see in the API docs we can manipulate pages, such as deleting them, but don't see any functionality for downloading/exporting images. Only Electronic Documents, but I may have overlooked it.
Thanks and any help would be greatly appreciated