Hi all,
I going crazy trying to set up a workflow to create a set of records from the from the Vimeo API Call – Get Call https://api.vimeo.com/me/videos. I can get the API to initialize but Vimeo seems determined to make it hard do anything with the response by including a bunch of garbage (spaces, /r, /n) inside each item of the response that needs to be stripped and some “/”s inside the response that need to be escaped.
I have already tried multiple combinations of “format as JSON safe inside “format as text”, with “find and replace” and “extract with Regex”. Nothing seems to work.
Some of the failures relate to things like Bubble not allowing me to do to Regex’s in a row. I have a pattern that looks identical at the beginning and end of each item but they are actually slightly different.
I think that the sequence of operations is critical so hoping that someone out there can set me straight.
The Vimeo response type is “data”. Inside the data list, the json looks as follows.
“data”: [
{
“uri”: “/videos/880349166”,
“duration”: 84
},
{
“uri”: “/videos/879219476”,
“duration”: 5
},
{
“uri”: “/videos/879219473”,
“duration”: 16
},
]
When I pump this into freeformatter.com to get the escaped JSON, I get the following.
{\r\n "uri": "/videos/880349166",\r\n "duration": 84\r\n },\r\n {\r\n "uri": "/videos/879219476",\r\n "duration": 5\r\n },\r\n {\r\n "uri": "/videos/879219473",\r\n "duration": 16\r\n }
The "/videos/880349166" is the data value. I have tried removing the “/video/” completely and this may be the solution but as I can’t get the rest right, I am not sure. The same goes for all the other solutions that I have tried. As all it takes is one wrong move to not make the solution work, it is very difficult to figure out how what the answer is.
I really appreciate the help!!!