Releases: Piggy-Loyalty/piggy-php-sdk
3.7.1
3.7.0
What's Changed
- Perks by @larswoltersdev in #31
- Add missing resources by @iDiegoNL
- Fix CustomAttributes Group model properties by @iDiegoNL (closes #30)
New Contributors
- @larswoltersdev made their first contribution in #31
Full Changelog: 3.6.0...3.7.0
3.6.0
3.5.0
3.4.0
Voucher & Promotion patches
- Add 'attributes' as array on Voucher & Promotion.
- Add ContactUuid on Voucher.
- Add PromotionUuid on Voucher.
Minor fixes
3.3.3 use empty array as fallback when meta is missing on response
Reversed recent deprecations
We have reversed the decision on deprecating certain functions. We are internally reviewing our way forward, and appreciate any community feedback.
Static methods and new way of authentication with ApiClient class
In this version we introduce static methods in our SDK for greater flexibility and performance, preparing for future updates. Older resource methods are now deprecated, encouraging you to adopt these new improvements. Resource files with calls to our API are from now on not updated anymore.
We also added a create and show call for Portal Sessions, but you can only use this with static methods which are located on the Portal Session class. Also, an update call has been added for Vouchers. Custom Attributes have been added with list and create functionality.
Our new ApiClient class expects through the configure function your API key and your base-URL. The API key can be generated in our Business Dashboard under Integrations.
Latest SDK version with minor updates
In the latest update, we've added a couple of new features and made some updates:
New Resources:
- Collectable Rewards: You can now list and collect rewards.
- Portal Sessions: We've added methods to create and show portal sessions.
- Webhook Subscriptions: You can list, make, show, change, and remove webhook subscriptions.
- Vouchers: We've added a new methods, like creating, listing, redeem, and more.
- Promotions: You can now list and make promotions.
- Promotion Attributes: You can list, show, make, and change promotion attributes.
- Forms, Tiers, BrandKit, Contacts Portal, and Loyalty Transaction Attributes: These have new methods like listing and showing.
Updates to Current Resources:
- Authentication: We have added functionality to authenticate using an API key from the business dashboard. Use the OAuthClientApiKey class for this.
- Contacts: We've added more methods to manage contacts, like creating them asynchronously and showing the tier of a contact.
- Contact Verification: We added a method to show the authentication token from a contact.
- Giftcard Transactions: You can now list giftcard transactions.