Documentation ¶
Index ¶
- type Client
- func (c *Client) Get(parcelID int64) (*sendcloud.Parcel, error)
- func (c *Client) GetDocument(ctx context.Context, parcelID int64, docTyp string, ...) (*sendcloud.Document, error)
- func (c *Client) GetLabel(labelURL string) ([]byte, error)
- func (c *Client) New(params *sendcloud.ParcelParams) (*sendcloud.Parcel, error)
- func (c *Client) ReadParcelWebhook(payload []byte, signature string) (*sendcloud.Parcel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDocument ¶ added in v0.4.5
func (c *Client) GetDocument(ctx context.Context, parcelID int64, docTyp string, fmt sendcloud.DocumentFormat, dpi int) (*sendcloud.Document, error)
GetDocument retrieves the parcel document of parcelID with type docType from the api. https://api.sendcloud.dev/docs/sendcloud-public-api/parcel-documents/operations/get-a-parcel-document
Click to show internal directories.
Click to hide internal directories.