Quickstart
UN QR Code Generation is a web service that can be used by sending HTTP requests.
You can use Postman to send requests with api key and input url to request QR code generation from the endpoint.
Using the examples
The example scripts that we've provided here are complete and ready for you to use, although most of them require a little customization. Placeholders for values that are specific to you appear in the code between braces, like this:
https://<APP_URL>/<FUNCTION_NAME>
Usage - Python
You will need to pass a dictionary with an API key named api_key and input text named input_text. For example:
import requests, json URL = "https://unite-tada.un.org/datetime-parser-api/parse" header = { "Content-type": "application/json", "Accept": "application/json" } text = "Type your input here" request_body = { "api_key": <API_KEY>, "input_text": text } response = requests.post(url=URL, data=json.dumps(request_body), headers=header) result = response.json()

