Pass error object to callback functions
Change scheme in advanced api endpoints
Add function to get request token