Jump to content

Bilmc

Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Bilmc

  1. Thanks, Paul! Here's the documentation I have: https://drive.google.com/file/d/16ueKq7rw-NtR9R0DVhuR4ZT8DsmBK0GT/view?usp=drivesdk Let me know if the link doesn't work. Are you ok with Norwegian language in the text? I assume the code is multilingual 😉 I did use it previously, but at that time it was on Weebly. I haven't checked, but I believe they have similar solution as SS.
  2. Hi! I have an issue of not getting things to work the way I want it to. Sorry the language is n Norwegian in the webpage, but I´ll try to describe the issue nevertheless. On https://play.bilmc.no/ you will now see how the new site looks like. On the attached image I´ve shown an example of how I can make usage of the api with css customization, and the strings in the code will help me show what data to present to the vistor. On https://bergenbilogmcskole.tabs.no/kursoversikt you´ll see the data I want to present on play.bilmc.no. The creators of that page is the same company who produced the api. One of the attached images shows how to be able to use the api. On that "code-image" it says that "To use the JSON-endpoints it needs to register the IP adresss of the server used. I´ve told them to "open up" and approve 4 IP-adressess who is attached to Squarespaces servers. That means that the developers opens these four IP´s as whitelisted. https://www.nslookup.io/domains/play.bilmc.no/webservers/ Further on is says "Kurs" and "HTML" on the third attached image to this post. Both with <script> and <div code. My questions are to you; Where do I put the different codes? If I put this in the header: $client = new GuzzleHttp\Client(); $res = $client->request('GET', 'https://api.tabs.no/api/v2/course', [ 'headers' => ['ApiKey' => 'c4e844824823f69be8305a98696b96d5'], 'query' => ['officeId' => 304], ]); It will only appear as black text and white background all the way on top. I don´t understand how to add a Query-parameter... When I include this in code-block; <script>var officeId = {ID};</script> <script src="https://api.tabs.no/js/api.js?v2.0.0"></script> I will have a "No preview when logged in box" and nothing when published... How can I make the data appear on my page? Hopefully someone can make me understand!
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.