Below describes an example workflow of API calls that can be made in order to submit a Bulk Enhance request and retrieve results using the Ping.Data API. The following is a specific example; there are more options available to the user that are documented in the Bulk Enhance pages linked below under Ping.Data. The code blocks allow the user to select from Python or cURL (via terminal) use cases. The sample Python script is available for download at the bottom of the page. Try filling in the blanks (e.g., {id}) to go through the workflow using cURL!Documentation Index
Fetch the complete documentation index at: https://docs.pingintel.com/llms.txt
Use this file to discover all available pages before exploring further.
1. Start Bulk Enhance Job
The first API call to make is Start Bulk Enhance Job. This endpoint allows a user to submit a batch of locations to Ping for enhancement. Example code:enhance_multiple_locations.py
Python output
2. Check Bulk Enhance Job Status
The second API call to make is Check Bulk Enhance Job Status. This endpoint allows a user to check the status of a previously submitted Bulk Enhance job using theid returned from the first step.
The user should poll this endpoint until the job status is either COMPLETE or FAILED.
Example code:
enhance_multiple_locations.py
Python output
3. Fetch Bulk Enhance Job Result Data
The third API call is Fetch Bulk Enhance Job Result Data. This endpoint allows a user to download the resultant file for a completed Bulk Enhance job using theid and filename returned from the previous step.
Example code:
enhance_multiple_locations.py
Python output
Python Demo
Download a ready-to-run Python demo of this workflow here: Download Python Script hereenhance_multiple_locations.py