Script for downloading Sentinel 2?

Hello, where I can find a script with I can download Sentinel 2 via API Hub?

Best wishes,
Dragan