If you have not already vote an idea, you can do so by sending a request to the web address of the idea. Here's one easy way to do it with an asynchronous HTTP (Ajax) request using jQuery.
IBM Connections 4 documentation link: Vote an idea
Atom API Request Details
|Status Code: 204 No Content|
Example using jQuery
Note: console.log can throw errors in IE, they are there for illustrative purposes only and should be changed as required.