spiskulaesriuk-esridist

ServiceArea taks token

Discussion created by spiskulaesriuk-esridist Employee on Nov 6, 2013
Latest reply on Nov 12, 2013 by JGravois-esristaff
Hi,

Im working on service area task:
https://developers.arcgis.com/en/javascript/jssamples/gp_servicearea.html

And i am wondering how to pass in a token to it?

I had a look at Service Area Parameters
https://developers.arcgis.com/en/javascript/jsapi/serviceareaparameters-amd.html

But it does not seem to accept one.

It does work if at the end of the service url i add ?token=xxxx parameter, but that does  not seem the right way of doing this. Any hints?

Outcomes