How to generate shipping labels with API

How to generate shipping labels with API