Updated library to match new endpoint specifications