Data Enrichment Calling an API with Refine (6:14)
Encoding URL:
When passing your value to the API service you need to encode the value in URI format (read more on URI encoding here: https://en.wikipedia.org/wiki/Percent-encoding).
The escape function automatically encode the value in URI format. Its format is either:
value.escape(‘url’) or escape(value,’url’)
For example: The escape function will replace all space and punctuation from the following tweet:
What shd I do during 20 minutes it takes to save my authority records in Connexion?' 'Here's some DC to MODS metadata work in OpenRefine'
and return
What+shd+I+do+during+20+minutes+it+takes+to+save+my+authority+records+in+Connexion%3F%27+%27Here%27s+some+DC+to+MODS+metadata+work+in+OpenRefine%27
Last modified: Saturday, 19 September 2015, 11:41 AM