How to integrate ZBD into your Beamable project.
A microservice architecture, or “microservice”, is a solution of developing software systems that focuses on building single-function modules with well-defined interfaces and operations. https://docs.beamable.com/docs/microservices-feature-overviewThis provides you a path for a seamless integration solution that powers easy and safe incorporation of ZBD functionalities into your game.
Package Manager
-> Add package by name
-> input com.unity.nuget.newtonsoft-json
.Add
..unitypackage
file.
Operate
-> Config
+ Add Config
Namespace: | Key: | Value: | Notes: |
---|---|---|---|
ZebedeeAPI | clientsecret | your client secret | This is only needed for the ZBD Login Example |
ZebedeeAPI | apikey | your API Key | This is needed for any interaction with the ZBD API |
Window
-> Beamable
-> Open Microservices Manager
ZebedeeMicroservice
Play
button.
Microservices Manager
tab in Unity, click Publish
.
Publish
window, toggle on which Microservice(s) you want published, then click Publish
. This will deploy your Microservice(s) to Beamable’s platform.
Microservices
tab in the Beamable Portal.
MyController.cs
file in the scripts directory of the ZBD Unity Package within Unity. Insert this code in applicable area(s) of your game; e.g. when you’re Sending sats to a ZBD Gamertag.
To get data that needs to be secure from Beamable (as we do for the apikey
and clientsecret
), you can reference the code in Config.cs
and the GetAPIKey
function in ZebedeeMicroservice.cs
.
LoginController.cs
script. This handles the initial start of the login flow and the deep link functionality.
LoginController
in the ZBD Login demo scene.
Published
Microservice, ensure the Microservice is published and deployed to the correct Realm from the Beamable Portal.