strings/strings

3.9.7 2023-03-08 12:50 UTC

This package is not auto-updated.

Last update: 2024-04-18 12:01:48 UTC


README

Introduction

Simple calculator API hosted on APIMATIC

Install the Package

Run the following command to install the package and automatically add the dependency to your composer.json file:

composer require "strings/strings:8.3.9"

Or add it to the composer.json file manually as given below:

"require": {
    "strings/strings": "8.3.9"
}

You can also view the package at: https://packagist.org/packages/strings/strings#8.3.9

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

ParameterTypeDescription
environmentEnvironmentThe API environment.
Default: Environment.PRODUCTION
timeoutintTimeout for API calls in seconds.
Default: 0
enableRetriesboolWhether to enable retries and backoff feature.
Default: false
numberOfRetriesintThe number of retries to make.
Default: 0
retryIntervalfloatThe retry time interval between the endpoint calls.
Default: 1
backOffFactorfloatExponential backoff factor to increase interval between retries.
Default: 2
maximumRetryWaitTimeintThe maximum wait time in seconds for overall retrying requests.
Default: 0
retryOnTimeoutboolWhether to retry on request timeout.
Default: true
httpStatusCodesToRetryarrayHttp status codes to retry against.
Default: 408, 413, 429, 500, 502, 503, 504, 521, 522, 524
httpMethodsToRetryarrayHttp methods to retry against.
Default: 'GET', 'PUT'

The API client can be initialized as follows:

$client = APIMATICCalculatorLib\APIMATICCalculatorClientBuilder::init()
    ->environment('production')
    ->build();

List of APIs

Classes Documentation