This will show the actual API response from the API endpoint. and also indicate if there are any errors.
Learning Centre
API Testing
As a City Admin user, you can test the API for location widgets and integration widgets from the admin panel in Citizen Portal.
Location widgets
To test the API for a location widget, you need to:
- Select the "Widgets" tab
- Find the specific location widget you'd like to test from the list of widgets
- From the "Actions" dropdown menu, select "Edit"
- Then, select "Content" from the side menu
This will take you to the content panel for the location widget. Here you can set and test the API for the widget.
Run an API test for location widgets
To test the API, you need to :
- Select the "Test API" button next to the "API endpoint" field
- This will open the "Test API" screen and the "API endpoint to test field" will auto-populate with the current API endpoint for the widget. You can change this if you'd like.
- Enter the address you'd like to test the API endpoint for
- Select the "Run" button to complete the API test
The API tester will give you the following information.
If there are any errors or warnings, they will be displayed in the exceptions tab.
This tab will show which notifications will be generated at what date and time. If there are any errors that might result in notifications not getting generated, they will be displayed in the notifications tab.
Integration widgets
You can only test the API endpoints for integration widgets for existing users who have successfully linked their accounts or by manually entering a valid access token. To test the API for one of your integration widgets, you need to:
- Select the "Widgets" tab
- Find the specific integration widget you'd like to test from the list of widgets
- From the "Actions" dropdown menu, select "Edit"
- Then, select "Content" from the side menu
This will take you to the content panel for the integration widget. Here you can set and test the API for the widget.
Run an API test for integration widgets
To test the API, you need to :
- Select the ‘Test API’ button next to the "API endpoint" field
- This will open the "Test API" screen and the "API endpoint to test field" will auto-populate with the current API endpoint for the widget. You can change this if you'd like.
- Select the link account associated with this widget from the "Select link account" dropdown menu
- Choose if you want to run a manual or user based test
- Select the "Run" button to start the test
If you select the "Manual" access token, you'll need to enter the access token manually and select the address that you want to test the API endpoint for. Please note that if the widget is not property dependent, the address fields will not appear here.
If you select the "User based" access token, you'll need to select the user and address that you want to test the API endpoint for. Please note that if the widget is not property dependent, the address fields will not appear here.
The API tester will give you the following information.
This will show the actual API response from the API endpoint and also indicate if there are any errors.
If there are any errors or warnings, they will be displayed in the exceptions tab.
This tab will show which notifications will be generated at what date and time. If there are any errors that might result in notifications not getting generated, they will be displayed in the notifications tab.
Contact Us
GHD Digital Support
Primary +1-866-691-5528
Secondary +1-519-884-2476
Submit Online
Need Help?