The Blockchain Wallet API provides a simple interface Merchants can use to programmatically interact with their wallet.
To use this API, you will need to run small local service which be responsible for managing your Blockchain Wallet. Your application interacts with this service locally via HTTP API calls. Click here for complete setup ...
If you want to know all steps from create a wallet to broadcast a transaction in test net you can use of my step by step tutorial about this: