Routing for ArcGIS

I am getting the url from here. I have deleted my api key for security reasons on this one but even with it in it was not working.