What's Changed
Added
charts.create()now returns anembedUrlalongsideurlandid.urlpoints at the chart page (https://szum.io/c/<id>);embedUrlpoints at the embeddable variant (https://szum.io/e/<id>) suitable for<iframe>use.
- const { url, id } = await szum.charts.create(config);
+ const { url, embedUrl, id } = await szum.charts.create(config);A missing embedUrl in the server response now throws SzumAPIError, matching the existing behavior for url and id.
Full Changelog: v2.0.0...v2.1.0