You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
Only a single SRFax job can be retrieved (downloaded) at a time. The download format can be specified with options as either PDF or TIFF; defaults to account settings if unspecified.
An example of retrieving an Inbox (inbound) item, see comments for more details:
opts:= srfax.RetrieveOptions{
FaxFormat: "PDF",
}
resp, err:=client.RetrieveFax("383726044", "IN", opts)
iferr!=nil {
log.Fatalln(err)
}
// *RetrieveResp has convenience method to decode // the base64-encoded Result string into []bytedata, err:=resp.DecodeResult()
iferr!=nil {
log.Fatalln(err)
}
// write out data to a fileiferr:=ioutil.WriteFile("sample.pdf", data, 0644); err!=nil {
log.Fatalln(err)
}