# Sending data to my server to find optimal schedule

**URL:** <https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892>\
**Category:** Ask for Help\
**Created:** [April 27, 2024, 7:16am UTC](https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892 "2024-04-27T07:16:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darko\_Vukoje](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darko_vukoje/32/73227_2.png) [@Darko\_Vukoje](https://community.glideapps.com/u/Darko_Vukoje)\
**Post date:** [April 27, 2024, 7:16am UTC](https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892/1 "2024-04-27T07:16:27Z")

</div>

My app needs to send json data via POST to my server who needs to find the optimal matches/players/courts schedules. As a result, i will get json with optimal schedule.

I am on the maker plan.

From what I can see, I have teo options here:

1. send via web hook
2. send via js column javascript POST request

I need to have some nice progress indicator until the server fnishes the job.

Never worked with web hook.

Any suggestions. Appreciate

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 27, 2024, 8:18am UTC](https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892/2 "2024-04-27T08:18:41Z")

</div>

Is it an authenticated request?

If yes, then I would advise using a webhook to Make to fetch the data, and then the Glide Make integration to write the result back to Glide.

It could be done with JavaScript, but it would not be secure, so it’s not suitable for authenticated requests.

For the progress indicator, a common technique is to use an animated GIF with visibility conditions.

---

<div class="post-metadata">

**Author:** ![Darko\_Vukoje](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darko_vukoje/32/73227_2.png) [@Darko\_Vukoje](https://community.glideapps.com/u/Darko_Vukoje)\
**Post date:** [April 27, 2024, 2:41pm UTC](https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892/3 "2024-04-27T14:41:49Z")

</div>

No it is for getting optimal schedule returned by algoithm on server. Js column can make POST fetch and i can remove gif when column content is not empty?

How to trigger ja fetch column to execute js?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 27, 2024, 3:15pm UTC](https://community.glideapps.com/t/sending-data-to-my-server-to-find-optimal-schedule/72892/4 "2024-04-27T15:15:34Z")

</div>

Here is a very simple example:

> [@Fetch JSON Column](https://community.glideapps.com/t/fetch-json-column/72381/8):
>
> Okay, so here is an example using a random public API (https://meowfacts.herokuapp.com/) const response = await fetch(p1); const data = await response.text(); return data; Just be aware that this method is insecure, so if you are including API keys then you are risking that they could leak.
