Update api.c

Added Gridseed serial number support to API