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 |
Name | Required | Default | Examples | Notes |
token | yes | - | - | Your plugin token |
riddleId | yes | - | - | The id of the riddle you want |
mode | no | dynamic | dynamic, responsive, static, shortcode | The mode of of embed (see the publish tab in our creator backend for examples) |
maxWidth | no | 0 | 0 or 1 | 0 => not set
1 => max-width: 100%; |
width | no | - | 640px or 90% | Use CSS to set the width of your riddle |
seo | no | 0 | 0 or 1 | If 1 the seo option is enabled (see the publish tab in our creator backend for more infos) |
disableAutoScrolling | no | 0 | 0 or 1 | If 1 auto scrolling is disabled |
|
Response