Socket
Book a DemoInstallSign in
Socket

apimatic_core

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apimatic_core

0.3.19
bundlerRubygems
Version published
Maintainers
1
Created
Source

apimatic-core

Gem Version Tests Linting Test Coverage Maintainability Rating Vulnerabilities Ruby Style Guide Licence

Introduction

Core library ruby does the job of congregating common and core functionality from ruby SDKs. This includes functionalities like the ability to create HTTP requests, handle responses, apply authentication schemes, convert API responses back to object instances, and validate user and server data.

Installation

You will need 2.6 <= Ruby version <= 3.3 to support this package.

Installation is quite simple, just execute the following command:

gem install apimatic_core

If you'd rather install apimatic_core using bundler, add a line for it in your Gemfile:

gem 'apimatic_core'

API Call Classes

NameDescription
RequestBuilderBuilder class used to build an API Request
APICallClass used to create an API Call object
ResponseHandlerUsed to handle the response returned by the server

Authentication

NameDescription
HeaderAuthSupports HTTP authentication through HTTP Headers
QueryAuthSupports HTTP authentication through query parameters
AuthGroupHelper class to support multiple authentication operation
AndHelper class to support AND operation between multiple authentication types
OrHelper class to support OR operation between multiple authentication types
SingleHelper class to support single authentication

Global Configuration

NameDescription
GlobalConfigurationClass holding the global configuration properties to make a successful API Call

Exceptions

NameDescription
OneOfValidationExceptionAn exception class for the failed validation of oneOf (union-type) cases
AnyOfValidationExceptionAn exception class for the failed validation of anyOf (union-type) cases
AuthValidationExceptionAn exception class for the failed validation of authentication schemes

Factories

NameDescription
HttpResponseFactoryFactory class to create an HTTP Response

HTTP Configuration

NameDescription
HttpClientConfigurationClass used for configuring SDK by a user
ProxySettingsProxySettings encapsulates HTTP proxy configuration for Faraday, e.g. address, port and optional basic authentication

HTTP

NameDescription
HttpRequestClass which contains information about the HTTP Request
ApiResponseWrapper class for Api Response
HttpResponseClass which contains information about the HTTP Response
HttpCallContextThis class captures the HTTP request and response lifecycle during an API call and is used with clients or controllers that support pre- and post-request hooks.

Logger

NameDescription
SdkLoggerA class responsible for logging request and response of an api call
NilSdkLoggerA class responsible for no logging
ConsoleLoggerRepresents default implementation of logger interface
ApiLoggingConfigurationRepresents logging configuration
ApiRequestLoggingConfigurationRepresents request logging configuration.
ApiResponseLoggingConfigurationRepresents response logging configuration.

Pagination

NameDescription
CursorPaginationCursor-based pagination strategy that handles extraction and injection of cursor values for seamless traversal across paged API responses.
LinkPaginationExtracts the next page link from API responses via a JSON pointer and updates the request builder with corresponding query parameters.
OffsetPaginationOffset-based pagination using a configurable JSON pointer to update and track offset values in the request builder across responses.
PagePaginationPage-based pagination strategy that updates the request builder with page numbers using a JSON pointer and wraps each response with metadata.
PaginatedDataIterator for paginated API responses supporting multiple strategies, item/page iteration, and access to the latest response and request builder.

Types

NameDescription
ApiExceptionBasic exception type for the SDK
AnyOfRepresents the AnyOf union type
OneOfRepresents the OneOf union type
LeafTypeRepresents the LeafOf union type
UnionTypeContextRepresents the context for a UnionType
ValidationExceptionException thrown in case of validation error or failure
ErrorCaseA class to represent Exception types
FileWrapperA wrapper to allow passing in content type for file uploads
ParameterA class to represent information about a Parameter passed in an endpoint
XmlAttributesA class to represent information about an XML Parameter passed in an endpoint

Utilities

NameDescription
ApiHelperA Helper Class with various functions associated with making an API Call
AuthHelperA Helper Class with various functions associated with authentication in API Calls
UnionTypeHelperA Helper Class with various functions associated with Union type in API Calls
ComparisonHelperA Helper Class used for the comparison of expected and actual API response
FileHelperA Helper Class for files
XmlHelperA Helper class that holds utility methods for xml serialization and deserialization.
DateTimeHelperUtility methods for date-time format conversions.
DeepCloneUtilsUtility methods for deep cloning arrays, hashes, and objects.
JsonPointerHelperUtility methods for getting and setting JSON pointer values in hashes.
JsonPointerEnables querying, updating, and deleting values in nested Ruby Hashes and Arrays using JSON Pointer syntax (RFC 6901).
LoggerHelperUtility methods for logging.

FAQs

Package last updated on 12 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.