September 2, 2020 at 4:54 pm
Hello forum. I'm having to query some ESRI rest api and returning some JSON output. I have the link and I'm using a data flow using a script component as a source. I have some of my C# code pulling the data but I'm getting an error, it seems that the esri link is requiring a token. So found this on ESRI's site but I'm having trouble finding the namespace or reference for the Catalog, please see code snip below. Does anyone know how to go about find that? Thank you.
Catalog myCatalog = new Catalog();
myCatalog.Url = "http://localhost/arcgis/services";
if (myCatalog.RequiresTokens())
{ string tokenServiceUrl = myCatalog.GetTokenServiceURL();}
September 3, 2020 at 5:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
September 4, 2020 at 7:26 pm
I think it's probably in an ESRI namespace rather than the .NET Framework, but as to exactly which one I don't know because I haven't worked ESRI.
September 8, 2020 at 1:20 pm
I found this link but it looks like I have to have an account to download it but I don't have one. I'd have to reach out our GIS department.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply