> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Catch of the Day

> Connect Alumio to Catch of the Day.

## Extra information

System documentation:

## Connector package documentation

**Catch of the day**

# Setting up HTTP Client Catch of the day

## Steps

1. In Alumio Dashboard, go to Clients > HTTPS Client. Create a new HTTP Client and select Catch of the day HTTP Client as the prototype of the HTTP Client.
2. Fill in the Base URI, and API Key.
3. Save the Client for use later.

# Subscribing to Entities from Catch of the day

## Steps

1. Go to Connections -> Incoming and create a new incoming configuration and select Catch of the day Subscriber as the subscriber.
2. Select the entity you want to subscribe from Catch of the day.
3. Add any request parameters needed to subscribe to the entity (optional).
4. You can optionally add a transformer to transform the request parameters into something you need.
5. Select the Catch of the day HTTP Client to use.

## General Concept

We follow Catch of the day documentation on building this connector so you can easily use the connector based on Catch of the day API Reference.

**Entity**
It’s the entity you want to subscribe from Catch of the day. Please refer to the entities in Management APIs from Catch of the day API Reference page.

**Request Parameters**
These are the parameters you can provide to get the needed entity based on Catch of the day API Reference. Please look at the example below on how to fill the Request Parameters field when subscribing Retrieve a thread entity.

<img src="https://mintcdn.com/alumio/Y4FUbluEreYeFn73/images/connectors/catch-of-the-day-01.png?fit=max&auto=format&n=Y4FUbluEreYeFn73&q=85&s=480fb9fdc9dc9819602775193f294a93" alt="Catch of the Day connector screenshot 1" width="689" height="445" data-path="images/connectors/catch-of-the-day-01.png" />

<img src="https://mintcdn.com/alumio/Y4FUbluEreYeFn73/images/connectors/catch-of-the-day-02.png?fit=max&auto=format&n=Y4FUbluEreYeFn73&q=85&s=e95cee8669fc0b99590e5c545378a568" alt="Catch of the Day connector screenshot 2" width="690" height="348" data-path="images/connectors/catch-of-the-day-02.png" />

That’s why we need to define the **thread\_id** property inside the path property in the Request Parameters field. The properties inside query parameters will be parsed as query parameters. Here is the final URL that will be called when using such Request Parameters field on Retrieve a thread.

/api/inbox/threads/123bact

**Input Transformer**
Any transformer’s set here will be executed after the Request Parameters are loaded. So, you basically can add any transformer to provide and transform the request parameters into anything you need either as path parameters and/or as query parameters of an entity.

**HTTP Client**
It’s the HTTP Client configuration or prototype you will use to access Catch of the day.

# Publishing Entity to Catch of the day

## Steps

1. Go to Connections -> Outgoing, create a new outgoing configuration, and select Catch of the day Publisher as the publisher.
2. Select the action that you want the publisher to do with the data.
3. Select the Catch of the day entity you want the data to be published.
4. You can optionally add any query parameters to the request.
5. You can also optionally add any transformers to transform the data into anything you need before submitting it to Catch of the day.
6. Select the HTTP Client to use.
   <img src="https://mintcdn.com/alumio/Y4FUbluEreYeFn73/images/connectors/catch-of-the-day-03.png?fit=max&auto=format&n=Y4FUbluEreYeFn73&q=85&s=c9c59c08f4bb924dc1e3d8b9cf339e7c" alt="Catch of the Day connector screenshot 3" width="690" height="306" data-path="images/connectors/catch-of-the-day-03.png" />

## General Concept

Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration), though you can also add or modify payload using the Request Transformer.

**Action**

Currently, we support Post (HTTP POST method), Put (HTTP PUT method), and Delete (HTTP DELETE method).

**Entity**
We support publishing to most Catch of the day endpoints. Please refer to the entities in Management APIs from the Catch of the day API Reference page. Based on the documentation, some endpoints may need one or more path parameters.

For endpoints that require an object as the request payload, please look at the example below. For example, we want to Create offer. Please select “Post” as the action and “Create, update, or delete offers” as the entity of the publisher.

<img src="https://mintcdn.com/alumio/Y4FUbluEreYeFn73/images/connectors/catch-of-the-day-04.png?fit=max&auto=format&n=Y4FUbluEreYeFn73&q=85&s=60bf3c0b1529c62ee36c02c3eb3541b9" alt="Catch of the Day connector screenshot 4" width="690" height="306" data-path="images/connectors/catch-of-the-day-04.png" />

<img src="https://mintcdn.com/alumio/Y4FUbluEreYeFn73/images/connectors/catch-of-the-day-05.png?fit=max&auto=format&n=Y4FUbluEreYeFn73&q=85&s=8bbf7e4da1bd418a437534ee38139203" alt="Catch of the Day connector screenshot 5" width="690" height="456" data-path="images/connectors/catch-of-the-day-05.png" />

You can put the payload you want to send to Catch of the day into the payload property in the data.

Alumio will send an API request to Catch of the day with URL /api/offers

**HTTP Client**
It’s the HTTP Client configuration or prototype you will use to access Catch of the day.
