Download the PHP package interworks/thoughtspotrest without Composer
On this page you can find all versions of the php package interworks/thoughtspotrest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download interworks/thoughtspotrest
More information about interworks/thoughtspotrest
Files in interworks/thoughtspotrest
Package thoughtspotrest
Short Description This package allows simple REST API communication with your ThoughtSpot cluster.
License MIT
Informations about the package thoughtspotrest
ThoughtSpot REST API for Laravel
This is a simple API for calling REST API's against your ThoughtSpot cluster. It handles authentication for you so install, add the environment variables, and start making REST API calls!
Getting Started
Installation
Requires PHP >= 8.2.
Next, add the following required environment variables to your .env file:
Then, depending on your desired authentication, add these:
"Basic" authentication:
"Trusted" authentication:
"Cookie" authentication:
For more information on ThoughtSpot REST API authentication options, view their doc here.
Documentation
Every REST API call in ThoughtSpot's documentation has a function to call it with the same name in camel case. For instance, the "Search Metadata" API call can be called with:
ThoughtSpot's REST API documentation can be found here.
Usage Guide
Basic Usage
Instantiate a ThoughtSpotREST object and start making calls!
Unsupported Endpoints
If there's an endpoint missed, you can use the call
function to specify the URL, arguments, and method. The function returns a Illuminate\Http\Client\Response
object.
Function Return Type Options
By default, either an array or boolean will be returned depending on the endpoint. If you'd like more control over how the response is processed, you can set returnResponseObject
to true
in the constructor to always receive the Illuminate\Http\Client\Response
object.
License
This package is released under the MIT License. See LICENSE
for details.