Is hard coding the url okay here? Is there a way this could/should be generated from the api details?