Happy Holidays! I am trying to retrieve data from an API that is supplied with a url and authKey (see image)

It is a GET request that supposed to return a JSON array like this:
But, I have not figured out which API tool to use, or how to pass the information to generate a response. I have examples of how to use it with PHP and Python but would like to use the Wappler tools.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": [
{
"type": "object",
"properties": {
"SchoolName": {
"type": "string"
},
"Address1": {
"type": "string"
},
"Address2": {
"type": "string"
},
"City": {
"type": "string"
},
"State": {
"type": "string"
},
"PostalCode": {
"type": "string"
},
"Country": {
"type": "string"
},
"Logo": {
"type": "string"
},
"WebsiteUrl": {
"type": "string"
},
"PhoneNumber": {
"type": "string"
},
"DateJoinedIOGKF": {
"type": "string"
},
"DateLeftIOGKF": {
"type": "null"
},
"IOGKFMembershipValidThrough": {
"type": "string"
},
"IogkfMembershipClass": {
"type": "string"
},
"Instructor": {
"type": "null"
},
"IogkfRegion": {
"type": "string"
},
"EmailAddress": {
"type": "string"
}
}
}
]
}
Yes. But it has added parameters that are used, and I cannot determine how do do that with the information I have. Like, do I put the authKey part as a header… or leave it as part of the URL. Is there there somewhere where I enter the provided schema?
Click on “Define API Schema”:
Regarding your authKey, it depends on the API documentation. You posted the image of it being passed as a query parameter in the URL… leave it that way.
I get this screen, when I click the “fetch schema” button nothing happens
Do I define the fields provided in the schema example?
Thank you! It is working here. I did not open the the “Source” dialog.
As soon as I did that, and clicked the
icon, my data appeared. I just didn’t know where to look!!
1 Like
Nice!
Mark the conversation as “Solved”!
Are you Brazilian, @jrvidotti?
eu também! Vamos falar! abs!
I am still having issues with this. When I click the “Fetch Schema” button, then click the “Process” button, when in the schema editor it returns results in an array:
[{"SchoolName":" Unaffiliated / Honbo Dojo","Address1":" ","Address2":" ","City":"Spokane","State":"WA","PostalCode":"99202","Country":"USA","Logo":"https://members.iogkf-usa.com/noLogo.png","WebsiteUrl":"http://iogkf-usa.com","PhoneNumber":"509-309-2978","DateJoinedIOGKF":"2021-04-07T00:00:00","DateLeftIOGKF":null,"IOGKFMembershipValidThrough":"2021-12-31T00:00:00","IogkfMembershipClass":"IOGKF School","Instructor":null,"IogkfRegion":"West Coast\r\n","EmailAddress":"manage@iogkf-membership.com"},
…
But when I try to create a repeat or table I get nothing. Is there another operation I need to run on the testing server (in my browser) I get nothing. What else must I do?