Define Callout Class

Define callout class within your self-invoking function. Suppose TestClass is a callout class then syntax is shown below. 

function TestClass() { 

 

//code block 

 

};