I am making a program which will take a .wif private key, and send all funds from the wallet represented by the key to a certain address. I need this to be fully automated, but I can't seem to find any simple API which can send from a .wif. Thanks!

Thanks for this. While looking around i discovered bitcoinjs-lib, which i will just be using to generate a transaction then use some api to broadcast that (don't want to have to sync blockchain for this).
– markasoftwareMar 22 '17 at 4:12