Use request lib instead of curl

- Updated to use request lib instead of curl
- Updated tests so that they don't fail because of the extra parameter of the API funcs

It's worth noting that the callback is an optional parameter.