Added post_object and made getApiUrl a function in base class.