So I have connected my external api to the API Connector.
How do I display the results in the repeating group?
Cannot get it to display.
So I have connected my external api to the API Connector.
How do I display the results in the repeating group?
Cannot get it to display.
You won’t get a list of results back at the moment. Is that what you are trying to do ?
At the moment you map the response fields in the plugin, and then can display them.
Yes trying to get a list of results back.
At the moment you map the response fields in the plugin, and then can display them.
How do you do that?
At the moment you dont get a list, you just get the first.
In the plugin, when you hit “initialise” with the data you have entered you get a response back with the ability to map each field to a bubble data type.
When you add the API to a page or a workflow, you get the fields you mapped as outputs.
So I am pulling this api to show flight arrivals and depatures. If I cannot show a repeating group, not sure how I can show a list. The information is is different everytime the api is called.
Yes, the API connector doesn’t support lists right now. We’ll have to wait for the update
How can we connect the result (list of items that are in JSON but correspond to persons) from a response to a bubble custom type (like person)?
Was there an update on creating lists with API connector?
Not sure I follow. What do you mean by “creating list”?
Hello Emmanuel,
Basically I have an API that produces a JSON list, I am trying to produce the same list using Repeating Group. The data comes blank. Am I doing something wrong, is there another way to do this or is there an update planned to allow this?
At the moment I am only getting the first result from the API, I want all results?
Well it’s a bit hard to say without looking at what you’re doing, especially since your API is yours. Can you share your app so that other users can look at it temporarily?
Hello Emmanuel,
Here is the API:
https://poloniex.com/public?command=returnOrderBook¤cyPair=BTC_ETH&depth=10
The page: https://investwisetest.bubbleapps.io/version-test/main
I can get single results on other APIs, but finding it difficult with arrays.
Added a version to Public - https://investwisetest.bubbleapps.io/version-test/main
Any help is appreciated -
On a side note Bubble is a really nice tool. Just need better understanding of APIs
Okay, so looking at the JSON, that’s unfortunately a limit of our current implementation, we’ll look into changing this at some point, but you can’t get a list if it’s inside a field which is already inside a list.
{
"asks":[
[
"0.01998202",
0.26
],
[
"0.01999000",
226.49075727
],
[
"0.01999499",
11.438
],
[
"0.01999537",
0.38
],
[
"0.01999566",
0.02026583
],
[
"0.01999587",
0.36
],
[
"0.01999693",
0.37
],
[
"0.01999899",
16.6423
],
[
"0.01999900",
397.6956711
],
[
"0.01999989",
3
]
],
"bids":[
[
"0.01997949",
9.36572284
],
[
"0.01997337",
0.04
],
[
"0.01997300",
44.72062689
],
[
"0.01997299",
113.27704392
],
[
"0.01997256",
0.38
],
[
"0.01997203",
0.39
],
[
"0.01996697",
4.74
],
[
"0.01996400",
50.09016229
],
[
"0.01996219",
2
],
[
"0.01996000",
129.7124
]
],
"isFrozen":"0",
"seq":86562545
}
ask and bids are lists of lists, unfortunately.
No problem - Thank you for getting back to me, this feature will be a killer feature for you guys. Cannot really see anything else that is missing.
I’ll try to see if that can be added soon, but no promise.
Similar question about repeating groups and the API connector.
If I have JSON from an external API structured in this way how would I go about displaying the results in a repeating group?
[
{
“Stage”: “sample Stage”,
“Week”: “sample Week”,
“Day”: “sample Day”,
“Action”: “sample Action”,
“Product”: “sample Product”,
“AppRateMetric”: “sample AppRateMetric”,
“AppRateUS”: “sample AppRateUS”
},
{
“Stage”: “sample Stage”,
“Week”: “sample Week”,
“Day”: “sample Day”,
“Action”: “sample Action”,
“Product”: “sample Product”,
“AppRateMetric”: “sample AppRateMetric”,
“AppRateUS”: “sample AppRateUS”
},
{
“Stage”: “sample Stage”,
“Week”: “sample Week”,
“Day”: “sample Day”,
“Action”: “sample Action”,
“Product”: “sample Product”,
“AppRateMetric”: “sample AppRateMetric”,
“AppRateUS”: “sample AppRateUS”
},
{
“Stage”: “sample Stage”,
“Week”: “sample Week”,
“Day”: “sample Day”,
“Action”: “sample Action”,
“Product”: “sample Product”,
“AppRateMetric”: “sample AppRateMetric”,
“AppRateUS”: “sample AppRateUS”
}
]
That should just work. Have you tried?
Yes I just can’t nail the steps correctly to do this. I have the API connector set up as an Action (with the goal to display the results after a button is pressed by passing an input to the connector as a parameter), but my trouble comes in when trying to get this into the UI and which settings to use in the workflow to get it to work. I’ve recently done a more simple version with just a group but the repeating group with a list has me stumped.
The general spirit on the forum is to show what you did with a link to your app (or at least some screenshots). Otherwise other can’t help.