Upgrades to Endpoint APIs Co-Sponsorship - 65% CLOSED 😄

I’m in for $100. Maybe we should set up a kickstarter?

Hey @collegefund.me

Thanks for the contribution.

Thanks to another user who just contributed 500 of who wishes to remain anonymous

in for 100$.

Hey @JohnMark

Thanks for the contribution. I will DM the details to you directly

1 Like

Hey, Guys!

Since the development work is underway, i am closing the contributions. I will be covering the remaining amount. If you had made a contribution and had not transferred your pledge yet, then please go to https://www.paypal.me/alifarahat and transfer the amount in USD.

If you had made a contribution and your circumstances have changed, then please let me know through a direct message so I can remove you from my tracking list.

Remember we all do what we can, and I wont hold anyone up and put him under pressure. So please just let me know either way.

Can we still donate?

@AliFarahat Did this get included in an update?

When I try and include Headers in my endpoint call for testing purposes there are errors but it works perfectly fine without them. And the App I want to connect to sends a webhook I need to access, but it has data in the Header

1 Like

I don’t understand what your trying to do

Hi,

Was this development completed? If yes, is it possible to access it by paying a certain amount? I am trying to integrate the APIs into a website and am facing issues with the nested fields and arrays and would like to understand if this solves the issue.

Thanks,

Anil

The development is complete. Are you trying to access an incoming API call? Or do you want to make an out going call?

My app has an Endpoint /notifications

When certain events get triggered in another application, they will send a webhook to my app, and they use the callback url of /notifications

But they also include 2 Header strings. I could not verify my endpoint was being hit when the events in that app occurred so I have been testing the endpoint in my app using a few API testing sites

The endpoint works perfectly fine with this setup, with no Headers set:

But it always fails when I include any Header (tested in 2 spots here)

Any idea what is going on here? Do I need to accept or parse the Header strings in the Bubble app somehow for the call to work?
Are your endpoints receiving data through Header strings?

Thanks

Looking to fetch data from bubble into wordpress using the GET calls.

Hey I have just come across this thread as I am doing my first implementation of web hooks in my app. I have managed to subscribe to the web hook however I am having trouble receiving the information.
I believe that my web hooks come in form-encoded POST data,
something like this

{
“object”: “job”,
“entry”: [{
“changed_fields”: [“badges”,“generated_job_id”],
“time”: “2015-01-01 00:00:00”,
“uuid”: “de305d54-75b4-431b-adb2-eb6b9e546013”
}],
“resource_url”: “https://api.servicem8.com/api_1.0/job/de305d54-75b4-431b-adb2-eb6b9e546013.json
}

Im wondering if this falls into the development you have mentioned above and whether you could help me here

The item I need it the UUID, but I believe its nested

1 Like

It should work. I know nested arrays are a problem but it should still work. Follow the instructions in the bubble manual

Edit I changed the content-type to application/json used the json data from the 3rd party in the JSON text box, sent it to /initialize, recieved a success and everything looks fine, tricked it perfectly
however when the webhook comes in it executes the apiworkflow but what comes in lookes like this (taken from the logs)

Started running workflow
Request data
{
“_wf_request_data”: “1348695171700984260__LOOKUP__StaticObject::api_wf_data.bTKQg0,{”_wf_object":null,"_wf_entry":null,"_wf_resource_url":null,"_id":“99914b932bd37a50b983c5e7c90ae93b”}"
}

and it is still not working :disappointed_relieved:

I tried to follow the instructions without success

It doesnt help that Im having issues detecting data due to the way the 3rd party subscribes the web hooks

Basically I have to do a post to the 3rd party web hook endpoint, from here it sends a “challenge” of which I have to send the challenge back.

This is fine I can catch the “challenge” as a “text” and send it back as a response. Success, web hooks now get sent to me when the data changes in the 3rd part.

However the data being sent is now a different format, it is
{
“object”: “job”,
“entry”: [{
“changed_fields”: [“badges”,“generated_job_id”],
“time”: “2015-01-01 00:00:00”,
“uuid”: “de305d54-75b4-431b-adb2-eb6b9e546013”
}],
“resource_url”: “https://api.servicem8.com/api_1.0/job/de305d54-75b4-431b-adb2-eb6b9e546013.json”
}

and using the values doesn’t seam to catch any of the responses.
off the bat you would think that doing detect data would work however I cant subscribe the endpoint to the /intitialize address.

I am trying not to send the above json data via a an API connector call however it is not picking anything up, im pretty sure this is to me doing something wrong, I am currently just pasting that data into the json BODY of the apiconnector call.
I’m wondering if I have to set the content type or something

Im in for $100

It’s already done. Thanks though

1 Like

I only just came across this thread - Great work in getting the money together @AliFarahat!

I can’t seem to find anything in the Manual about nested data in the API however.

Has nested data in the API been implemented since your co-sponsorship was successfully finished?

I am trying to get data from the API with nested items (from a list), but whichever way I’ve tried I can only get the API to output ids in stead of the nested items - like so:

{
    "response": {
        "results": [
            {
                "EndDateTime": "2018-12-31T23:00:00.000Z",
                "StartDateTime": "2018-12-31T22:00:00.000Z",
                "ClientUser": null,
                "ClientCompany": null,
                "Agent": null,
                "EventName": "Countdown NYE",
                "List of Event Items": [
                    "1546472021923x597566576676831200",
                    "1546476371099x137323480115576830"
                ],
                "Location": {
                    "address": "Haitsma Mulierweg 11, 7101 BX Winterswijk, Nederland",
                    "lat": 51.9743987,
                    "lng": 6.713908
                },
                "_id": "1546043638906x911214247978467300"
            },
            {
                "EndDateTime": "2019-03-29T22:30:00.000Z",
                "StartDateTime": "2019-03-29T19:00:00.000Z",
                "ClientUser": "1548258724392x761821162763721200",
                "ClientCompany": "1548258696039x566047054767063040",
                "Agent": "1546039819362x258698235052552420",
                "EventName": "Company Event ",
                "List of Event Items": [
                        "1548258598565x555309237760426000",
                        "1548258734575x516085641221242900"
                    ],
                    "Location": {
                        "address": "Hazemeijerstraat 400, 7555 RJ Hengelo, Nederland",
                        "lat": 52.2627956,
                        "lng": 6.7837266
                    },
                    "_id": "1548258591753x627619480161747000"
                }
            ],
            "cursor": 0,
            "count": 100,
            "remaining": 1
        }
    }

The "List Of Event Items" is where the problem lies => 

They should each look something like:

"List of Event Items": [
                   {
                    "Item #1": [
                          "Item #1 name",
                          "Item #1 Status": [
                             {
                              "Status Name"
                             }
                          ],
                     },
                    {
"Item #1": [
                          "Item #2 name",
                          "Item #2 Status": [
                             {
                              "Status Name"
                             }
                          ],
                    },
                    ],
],

Am I missing something? It seems to me like this is exactly one of the issues you addressed with your campaign.

Use the auto detect feature here

then hit the

use the provided url to initialize the endpoint