How do I get a WKID or WKT from a spatial reference name?

Discussion created by jeremy.bridges on May 15, 2013
Latest reply on May 20, 2013 by matthewb
Anyone know how to get the WKID or WKT from a spatial reference name ("WGS_1984_Web_Mercator_Auxiliary_Sphere")?  Of course, I've got this list:

But, that doesn't give me a programmatic approach (besides typing all of these into an enum).

Some background: our application gets this spatial reference name from the JSON of an ArcGIS Online Item.  Instead of being in the usual format that contains the WKID, it just gives the spatial reference name.  Here's an example:

Do I need to build this for myself?