janssenr / SendCloudApi.Net

A C#/.net wrapper for the SendCloud API
MIT License
6 stars 5 forks source link

Print label #23

Closed VandalHearts closed 2 years ago

VandalHearts commented 2 years ago

Is it possible to add an example about downloading the pdf label of a parcel? Thanks in advance for your work

janssenr commented 2 years ago

Retrieve a PDF label

var url = "https://panel.sendcloud.sc/api/v2/labels/normal_printer/{id}";
var label = await client.Label.Download(url);
File.WriteAllBytes("{path}", label);

Also see readme