Client APIs

TERR, open-source R, and client application developers can write applications to integrate with the server using one of the Spotfire Statistics Services client APIs.

Spotfire Statistics Services includes the following client APIs:

  • Java™
  • C#
  • URL API

The Java and C# APIs provide support for managing code packages in a server package repository. The APIs contain essentially the same functionality with the exception of differences related to special language constructs that are available only in C#, such as properties, events, and delegates. A Java developer can implement the equivalent of these interfaces in Java as getter/setter pairs, single method interfaces, and classes.

These client APIs provide a layer that shields the client application developers from the mechanics of accessing the underlying web services exposed by the server applications.

You can access some of the underlying RESTful resources in other programming languages directly by passing in the request as an HTTP request to the URL API.

Clients can support both synchronous and asynchronous method invocations. In the case of the default asynchronous invocation, the client submits the request to a server and control returns to the client code after the server adds the request to a job queue. The client code can then register a callback method that can be invoked when the server completes the execution of the job.

In the synchronous invocation case, the client submits the request to the server exactly as in the above case, but instead of returning control to the client code after the server sends an initial response, the server generates a response to the client call only upon completion of the job.