admin管理员组文章数量:1023764
The api returns data in a json object but it has an unusual structure. For example if returning bitcoin data I get this:
"data": {
"1": {
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"slug": "bitcoin",
etc...
and I get this for ethereum:
"data": {
"1027": {
"id": 1027,
"name": "Ethereum",
"symbol": "ETH",
"slug": "ethereum",
etc...
When I use Parse JSON action with the bitcoin sample data it returns this schema:
"data": {
"type": "object",
"properties": {
"1": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"slug": {
"type": "string"
},
etc...
That works fine for bitcoin but will not work for ethereum due to the "1" in the schema, which would have to be "1027". Is there any way to get rid of the "1" or make it dynamic with a variable?
I have tried to use a variable for the UCID (universal coin ID) but power automate throws errors. I found a video on youtube where somebody did exactly what I am trying to do but he misses out some steps which I could not get to work. Here is the video: text
The api returns data in a json object but it has an unusual structure. For example if returning bitcoin data I get this:
"data": {
"1": {
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"slug": "bitcoin",
etc...
and I get this for ethereum:
"data": {
"1027": {
"id": 1027,
"name": "Ethereum",
"symbol": "ETH",
"slug": "ethereum",
etc...
When I use Parse JSON action with the bitcoin sample data it returns this schema:
"data": {
"type": "object",
"properties": {
"1": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"slug": {
"type": "string"
},
etc...
That works fine for bitcoin but will not work for ethereum due to the "1" in the schema, which would have to be "1027". Is there any way to get rid of the "1" or make it dynamic with a variable?
I have tried to use a variable for the UCID (universal coin ID) but power automate throws errors. I found a video on youtube where somebody did exactly what I am trying to do but he misses out some steps which I could not get to work. Here is the video: text
版权声明:本文标题:json - Extract data from coinmarketcap api http get response with power automate cloud flow - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745607131a2158789.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论