You need to register to use the USPS APIs:

https://www.usps.com/business/webtools.htm

You will then have to request that the switch from the testing url to production.

Then download the click and ship software, once installed, in the upper right? hand corner is your USPS ID.