Authentication Method

Before generating a report you must first authenticate with the API server by using one of the 2 methods below:

Using user and session ID that are sent manually with every request
Using cookies

If the API is to be accessed via a browser, then the cookie method is normally the most convenient way how to manage the authentication session. If you are writing a script or an application that needs to authenticate automatically and retrieve data without involving web browsers, then it is normally easier to avoid having to use cookies and managing the user name and session ID within your script. For more details about authentication, see Authentication.