KnowledgeBase

Search or browse in depth articles, software resources and videos on everything about Appward.

Table of contents

APIGeneric

Monday July 3, 2023-2 min read

Definition

The APIGeneric object is a tool designed to simplify interactions with third-party APIs. It serves as a common interface for making requests and handling responses for any API.

Features

Request methods: This object provides capability to send GET, POST, PUT, and DELETE methods to third-party APIs. These methods allow you to retrieve data, create new resources, update existing resources, or delete resources as per any API’s capabilities.

Endpoint configuration: You can define the API endpoints to be accessed using the APIGeneric object. You can set the base URL and additional route parameters, enabling flexible integration with different API endpoints.

Request Customization: The APIGeneric object provides options to customize requests, such as adding headers, setting query parameters, or attaching payloads. This flexibility allows you to fine-tune the requests based on the specific requirements of the third-party API.

Use cases

Data integration: You can use the APIGeneric object to integrate with various data providers, social media platforms, payment gateways, or any other service offering an API. This enables you to fetch, process, and store data from different sources within your applications.

External services: When you need to interact with external services like email delivery providers, SMS gateways, geolocation APIs, weather APIs, or mapping services, the APIGeneric object can simplify the communication and data retrieval processes.

Example

{ code block / OE }

Properties

URL

Parameters

Headers

Type

PostJSON

ReturnJSON

Return

Methods

Send

QuickScripts

BeforeSend

OnReceive


Published by:

Categories