Is there a way to make an api call dynamic without the ‘?’ symbol?
- I’m creating (what I thought was going to be) a simple lorum ipsum generator.
- The api is from http://loripsum.net/api/
- An authentication is not required.
- Values are passed as part of the URL.
example: http://loripsum.net/api/20/short returns
Twenty paragraphs
Each paragraph is short
I would like to create a group that is populated by this api.
Thanks for your help!
From http://loripsum.net/ (bottom of page)
How do I use the API?
Do a GET request on loripsum.net/api, to get some placeholder text. You can add extra parameters to specify the output you’re going to get. Say, you need 10 short paragraphs with headings, use loripsum.net/api/10/short/headers. All of the possible parameters are:
(integer) - The number of paragraphs to generate.
short, medium, long, verylong - The average length of a paragraph. decorate - Add bold, italic and marked text.
link - Add links.
ul - Add unordered lists.
ol - Add numbered lists.
dl - Add description lists.
bq - Add blockquotes.
code - Add code samples.
headers - Add headers.
allcaps - Use ALL CAPS.
prude - Prude version.
plaintext - Return plain text, no HTML.