Is there anyone out there who could help me get the information I want via an API?
I have been given a URL to the API interface: https://secure.tryout-eurodns.com:20015/v2/index.php
I also have a username and password.
I have then found this guide:
https://docapi.eurodns.com/#tag/DasService/operation/getAvailabilities
Do I create an API and connect to that on the page or do I add an API source or API action directly to my search page?
How do I add the first url given to API interface and then the second url and payload to Wapplers API action or source?
Any clues, hints on how I could get a search for that returns available domain names would be brilliant.
Many thanks
CK
Teodor
May 27, 2024, 10:25am
2
What does this endpoint return exactly?
Usually you create a server action and add an API action step. In the API action step you add the required authorization headers, and other stuff as per the docs. Then you use this server action and return the data on your page.
Hi Teodor,
This URL just allows entry into the API interface by requesting username and password.
I can PM you the details so you can see.
If I add the URL to an API Data Source I'm asked for the username and password and I can then see the following:
This seems to be XML only so I googled around and found the other url:
https://docapi.eurodns.com/#tag/DasService/operation/getAvailabilities
This seems to be json so I'm wondering how I get it to work within Wappler?
This my server action with the API action step.
Not sure how I now add the second url and the payload details from this page:
https://docapi.eurodns.com/#tag/DasService/operation/getAvailabilities
Would this work with Wappler?
Teodor
May 27, 2024, 11:17am
7
You can't just enter the api endpoint and expect it to return anything in the test dialog. Check its docs about how to authenticate using the username and password and add it to the API Action step as per their docs.
Teodor
May 27, 2024, 11:19am
8
Obviously you need an API key to access this.
I suggest you to check their docs and fill everything needed in the API Action steps.