2.0.0
This is a major update with many breaking changes
Due to recent restrictions on the public Wombo Dream API, dream-api
now uses the official Dream API server which requires API key authentication. The official endpoint does not support user authentication, unauthenticated requests, saving to gallery, retrieving galleries, generating trading cards, purchasing prints, specifying generation frequency, etc. As a result, these functions have been removed from dream-api
.
I'm very disappointed in the decisions of Wombo including the lack of feature parity between the public API and official / paid API and lack of developer support and transparency, but I want to keep this package alive and support the existing users. I understand that is a big downgrade over the original package, but it's the best I can offer.
Sign up for Wombo Dream API to get an API key..
Breaking Changes:
- Token is now required on all endpoints which were originally optional.
- Remove signUp() endpoint
- Remove signIn() endpoint
- Remove refresh() endpoint
- Remove getUploadURL() endpoint
- Remove getTaskShopURL() endpoint
- Remove getTradingCardURL() endpoint
- Remove saveToGallery() endpoint
- Remove getGallery() endpoint
- uploadPhoto() endpoint now takes image path and upload URL instead of buffer and token
- createTask() endpoint now requires taskID, no longer supports frequency, and now supports image resolution
- generateImage() endpoint now required token, takes image path instead of image buffer, supports image resolution, no longer accepts save options, and no longer support frequency.
- Add createTaskID() endpoint