Embed API in JSON Format
-
hi there!
i am about to create a website for an artist agency.
the agency works with system one which is a booking tool -
system one offers an api which adds dates in json format to the website.
as an absolute beginner i'd like to know if its possible to embed this kind of api into laytheme?
more info on system ones api here:
https://www.systemonesoftware.com/en/support/article/242-api-with-shows-in-json-formatthanks in advance <3
christian -
hey christian!
you'd need to learn about how to fetch api endpoints using javascript:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetchthen you'd need to use the json you get to create html using javascript and then insert that into the website using javascript as well
i think this is hard to do for a beginner, i don't have time to code this for you :/
the link shows an embed, that would be better. can u somehow get that embed code and put it on a lay theme page using → + more → +html
or +more → +embed
https://www.w3schools.com/tags/tag_embed.asp
seems like you could probably just add it using +html
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login