Steps to include services into the Znode SDK
- In the Znode SDK, under the Libraries folder, create a new class library with a name like Znode.Libraries.<yourservicename>.csproj (Znode.Libraries.MailChimp.csproj) in this case.
- Create a new class inside this project and add all the methods required to consume the 3rd party APIs.
- As the example is for integrating Mailchimp, an email marketing service, Znode’s built-in methods used for user signup, sign up for a newsletter, etc. should be overridden in the custom class for eg. CustomUserService.cs and the logic to share information with the third party APIs can be written
- The screenshots above give an idea of using/overriding the built-in methods to consume 3rd party APIs.
- The screenshots above give an idea of using/overriding the built-in methods to consume 3rd party APIs.
Pro Tip: You can also add helper methods inside this class library which may help to support your logic.