fix example usage in api readme section