fewchurs_core 1.4.1
fewchurs_core: ^1.4.1 copied to clipboard
Pure Dart client for the Fewchurs feature-request API. Models, errors and device identity used by the fewchurs Flutter package.
1.4.1 #
- Removes the repository link from the package page, which pointed to a private repository.
1.4.0 #
wrong_app:FewchursInvalidApiKeyException.userMessageis now the server's message, which names the ID to add. NewisWrongApptells this case apart. Other invalid key errors keep their message.- Logs a warning once when the app ID can't be read, instead of leaving it out silently. This usually means the app needs a full restart after adding the SDK.
1.3.0 #
- Sends the app ID so your API key only works in your own apps. Handles
wrong_app. - New
FewchursClient(appId:): returns your Bundle ID, package name or domain, sent asX-Fewchurs-App-Idon every request. Leave it unset in browsers, which sendOrigin. wrong_app(403) throwsFewchursInvalidApiKeyException(not retried), andmessagenames the ID to add in the dashboard.- Handles
wrong_platform: the API key belongs to an app made for another platform. It throwsFewchursInvalidApiKeyException(not retried), andmessagesays which SDK the key is for.
1.2.2 #
- Moves to the new domain: the default server is now
https://www.fewchurs.com/api/v1.
1.2.1 #
- Documented the public API and added an example, ready for pub.dev.
1.2.0 #
FewchursInvalidApiKeyException.userMessageis now "Invalid API key. Check the key in your Fewchurs dashboard." instead of the generic error.
1.1.0 #
- The default server is now
https://www.fewchurs.shop/api/v1. The oldfewchurs.comaddress never resolved, so every call failed unless the app passedbaseUrl. - Added
FewchursClient.getFeature(id)to open one request. - A 401 with the
unauthorizedcode now throwsFewchursInvalidApiKeyException. A 403 (forbidden) is handled as a generic error. RemoteConfig()now defaults toshowBranding: true, matchingRemoteConfig.fromJsonand the Kotlin and iOS SDKs.
1.0.0 #
- Initial release.