I have created an API using the built in HTTP API module. The API extracts keywords from a text, and returns the extracted keywords to the caller.
Currently, the only way I can figure out to pass the text to the API is by adding it to the end of the querystring, such as
import requests
response = requests.get("https://abcd.anvil.app/_/private_api/abcd/extract/sample text to parse")
print(response.text)
However, I would like to be able to pass a much larger string/block of text as an argument instead of tacking it on to the end of the querystring/url. How can I accomplish this? Does the Anvil API module accept those sorts of parameters?
What I’ve tried and what’s not working:
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Some people in this situation would convert your text to something like a base64 encoder/decoder. (For the large text portion of the data, possibly compressed)