November 8, 2019 – We’ve deprecated this API version. Please upgrade to our much snazzier v2 (view more info here).

Request

Method GET
Path /api/creators/riddle/get-embed-code
Example https://www.riddle.com/api/creators/riddle/get-embed-code?token=<your-token>&riddleId=123
Params
NameRequiredDefaultExamplesNotes
tokenyes--Your plugin token
riddleIdyes--The id of the riddle you want
modenodynamicdynamic, responsive, static, shortcodeThe mode of of embed (see the publish tab in our creator backend for examples)
maxWidthno00 or 10 => not set
1 => max-width: 100%;
widthno-640px or 90%Use CSS to set the width of your riddle
seono00 or 1If 1 the seo option is enabled (see the publish tab in our creator backend for more infos)
disableAutoScrollingno00 or 1If 1 auto scrolling is disabled

Response

Type STRING

Leave a Comment