You’ll see that I set ‘301’ if (for some reason) the API hasn’t been initialized, and ‘0’ if the call is successful. Obviously, there are a lot more tests and checks that I need to implement – for example, is the data element readable or not? And is it even supported by the API? I’ll get on to that later.