Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/speakeasy-sdks/multi-auth-asad

A php SDK for accessing the MultipleAuthTester API.
https://github.com/speakeasy-sdks/multi-auth-asad

Last synced: 2 days ago
JSON representation

A php SDK for accessing the MultipleAuthTester API.

Awesome Lists containing this project

README

        

# multiauthtester/multipleauthtester





## SDK Installation

### Composer

To install the SDK first add the below to your `composer.json` file:

```json
{
"repositories": [
{
"type": "github",
"url": "https://github.com/speakeasy-sdks/multi-auth-asad.git"
}
],
"require": {
"multiauthtester/multipleauthtester": "*"
}
}
```

Then run the following command:

```bash
composer update
```

## SDK Example Usage

### Example

```php
build();

try {
$request = new Operations\GetCarsByCNICRequest();
$request->cnic = '';

$response = $sdk->cars->getCarsByCNIC($request);

if ($response->classes !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}

```

## Available Resources and Operations

### [Cars](docs/sdks/cars/README.md)

* [getCarsByCNIC](docs/sdks/cars/README.md#getcarsbycnic) - Find cars by CNIC
* [getCarsById](docs/sdks/cars/README.md#getcarsbyid) - Find cars by ID
* [getCarsByName](docs/sdks/cars/README.md#getcarsbyname) - Find cars by Name

## Server Selection

## Server Selection

### Select Server by Index

You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://development.gigantic-server.com/v1` | None |
| 1 | `https://staging.gigantic-server.com/v1` | None |
| 2 | `https://api.gigantic-server.com/v1` | None |

### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:

### Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.

### Contributions

While we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!

### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)