How can we tests APIs through scripting?

This is a content.