diff --git a/examples/chaining/main.go b/examples/chaining/main.go index 867ca40..e34c308 100644 --- a/examples/chaining/main.go +++ b/examples/chaining/main.go @@ -16,7 +16,7 @@ func main() { jpgRes := convertapi.ConvDef("docx", "jpg", param.NewPath("file", "assets/test.docx", nil)) - zipRes := convertapi.ConvDef("jpg", "zip", param.NewResult("files", jpgRes, nil)) + zipRes := convertapi.ConvDef("file", "zip", param.NewResult("files", jpgRes, nil)) if cost, err := jpgRes.Cost(); lib.PrintErr(err) { fmt.Println("DOCX -> JPG conversion cost: ", cost) @@ -35,4 +35,4 @@ func main() { } else { fmt.Println(errs) } -} \ No newline at end of file +} diff --git a/examples/web/main.go b/examples/web/main.go index 9fba812..777dd1c 100644 --- a/examples/web/main.go +++ b/examples/web/main.go @@ -12,7 +12,7 @@ func main() { config.Default = config.NewDefault(os.Getenv("API_TOKEN")) // Get your token at https://www.convertapi.com/a/authentication fmt.Println("Converting WEB page to PDF") - webRes := convertapi.ConvDef("web", "pdf", + webRes := convertapi.ConvDef("html", "pdf", param.NewString("url", "https://en.wikipedia.org/wiki/Data_conversion"), param.NewString("filename", "web-example"), ) @@ -22,4 +22,4 @@ func main() { } else { fmt.Println(errs) } -} \ No newline at end of file +}