Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/test-py
A php SDK for accessing the a API.
https://github.com/speakeasy-sdks/test-py
Last synced: 1 day ago
JSON representation
A php SDK for accessing the a API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/test-py
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-10-16T23:35:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:47:46.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:53.477Z (6 months ago)
- Language: PHP
- Size: 89.8 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# next-test/a
## 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/test-py.git"
}
],
"require": {
"next-test/a": "*"
}
}
```Then run the following command:
```bash
composer update
```## SDK Example Usage
### Example
```php
build();try {
$response = $sdk->pets->createPets();if ($response->statusCode === 200) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}```
## Available Resources and Operations
### [Pets](docs/sdks/pets/README.md)
* [createPets](docs/sdks/pets/README.md#createpets) - Create a pet
* [listPets](docs/sdks/pets/README.md#listpets) - List all pets
* [showPetById](docs/sdks/pets/README.md#showpetbyid) - Info for a specific pet## 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 | `http://petstore.swagger.io/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:
# Development
## 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)