Updated makeAPIRequest params

Swapped $parameters and $requestType for the makeAPIRequest function