Before you can use JSL to publish reports to JMP Live, do the following:
1. Get an API key (if required by a JMP Live administrator). See Get an API Key.
2. Establish a default connection to a JMP Live server. See “Add a Connection to a JMP Live Server” in Using JMP. When you add a JMP Live server, you need to enter your API key (if required).
Once you establish a default connection, you can point to it in your JSL scripts:
liveconnection = New JMP Live( Connection( "My JMP Live" ), Prompt( If Needed ));
where "My JMP Live" is the name of the default connection that you created. If authentication is required, an interactive prompt appears. You can change the Prompt to No, but if authentication is required, the connection fails.
Before you can script reports and publish them to JMP Live, you might need an API key. JMP Live administrators determine whether an API key is required for scripting.
Caution: An API key is unique for a user and a JMP Live server. That means that if you obtain a new API key, it overrides the previous one, and any scripts using the previous API key must to be updated to use the new API key.
To obtain an API key:
1. Log in to JMP Live.
2. At the top, click your user icon and select Settings.
3. Click the Generate New API Key icon.
Tip: If you need to reference your API key in a script or to set up a JMP Live connection, you can click the Copy icon and paste it.