Client Libraries Overview
Overview
Client libraries will help you quickly integrate your application with FusionAuth. All of our client libraries are open source and hosted on our GitHub account. You can fork and tweak them as well as look over the code to learn how the client libraries work.
If we are missing a language, open a GitHub Issue as a Feature Request if you don’t see it already listed as an open feature.
Request and response objects
All the client libraries use the REST API.
In general, the request object will either be string parameters or a complex object depending on the type of API call being made. Any request object will be mapped by the SDK to a JSON object required by the corresponding API method. Examining the API documents for the operations you’re trying to call will therefore be useful, especially if you are using language without static typing.
The response object will typically contain:
-
a status corresponding to the HTTP status code returned by the API. It may also be -1 if no HTTP request was successfully made
-
a JSON success object if the call succeeded.
-
a JSON error object with an intelligible message if the status code is
4xx
or5xx
. -
an exception object if there was no HTTP request sent or there was no reasonable response from the server.