write about example of get credential API and list credential API