The best way to start is to look at the "Analysis API Reference".
It is available from the "Start Menu"->HP Software->Documentation->Analysis API Reference.
Also you can look to the sample application's sources (is installed together with LR):
C:\Program Files\HP\LoadRunner\samples\AnalysisAPI\AnalysisApiSample.zip