Update API.php

Fix octect/octet typo