Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apimatic/faraday-client-adapter
This repository contains the client implementation that uses the faraday client library for the python SDKs provided by APIMatic.
https://github.com/apimatic/faraday-client-adapter
Last synced: 15 days ago
JSON representation
This repository contains the client implementation that uses the faraday client library for the python SDKs provided by APIMatic.
- Host: GitHub
- URL: https://github.com/apimatic/faraday-client-adapter
- Owner: apimatic
- License: mit
- Created: 2022-10-28T11:45:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T10:09:20.000Z (8 months ago)
- Last Synced: 2024-04-17T07:32:46.408Z (7 months ago)
- Language: Ruby
- Size: 51.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apimatic-faraday-client-adapter
[![Gem Version](https://badge.fury.io/rb/apimatic_faraday_client_adapter.svg)](https://badge.fury.io/rb/apimatic_faraday_client_adapter)
[![Tests][test-badge]][test-url]
[![Linting][lint-badge]][lint-url]
[![Maintainability][maintainability-url]][code-climate-url]
[![Test Coverage][test-coverage-url]][code-climate-url]
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
[![Licence][license-badge]][license-url]## Introduction
This repository contains the client implementation that uses the faraday client library for the ruby SDKs provided by APIMatic.## Version supported
Currently APIMatic supports `2.6 <= Ruby version <= 3.2` hence faraday-client-adapter will need the same versions to be supported.## Installation
Installation is quite simple, just execute the following command:
```
gem install apimatic_faraday_client_adapter
```If you'd rather install apimatic_faraday_client_adapter using bundler, add a line for it in your Gemfile:
```
gem 'apimatic_faraday_client_adapter'
```## Classes
| Class | Description |
|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| [`FaradayClient`](lib/apimatic-faraday-client-adapter/faraday_client.rb) | Executes an HttpRequest and converts the HTTP Response from the client to an HttpResponse object. |## Methods
| Method | Description |
|--------------------------------------------------------------------------------|-----------------------------------------------|
| [`create_connection`](lib/apimatic-faraday-client-adapter/faraday_client.rb) | Initiates a new connection for executing the HTTP calls |
| [`execute`](lib/apimatic-faraday-client-adapter/faraday_client.rb) | Executes request with the properties set |
| [`convert_response`](lib/apimatic-faraday-client-adapter/faraday_client.rb) | Converts the Response from the HTTP client into HttpResponse object|## Links
* [apimatic_core_interfaces](https://rubygems.org/gems/apimatic_core_interfaces)
* [Faraday](https://rubygems.org/gems/faraday)[test-badge]: https://github.com/apimatic/faraday-client-adapter/actions/workflows/test-runner.yml/badge.svg
[test-url]: https://github.com/apimatic/faraday-client-adapter/actions/workflows/test-runner.yml
[lint-badge]: https://github.com/apimatic/faraday-client-adapter/actions/workflows/lint-runner.yml/badge.svg
[lint-url]: https://github.com/apimatic/faraday-client-adapter/actions/workflows/lint-runner.yml
[code-climate-url]: https://codeclimate.com/github/apimatic/faraday-client-adapter
[maintainability-url]: https://api.codeclimate.com/v1/badges/59badaadebeb3478eb48/maintainability
[test-coverage-url]: https://api.codeclimate.com/v1/badges/59badaadebeb3478eb48/test_coverage
[license-badge]: https://img.shields.io/badge/licence-MIT-blue
[license-url]: LICENSE