[Geomoose-users] help requesting token from 3rd party via php so I can link GeoMOOSE to a parcel deeds application

Mark Volz MarkVolz at co.lyon.mn.us
Thu Apr 4 08:45:46 PDT 2019


Hello,

About 2 months ago my php code that links GeoMOOSE to a 3rd party quit working.  The code in theory is rather simplistic.  GeoMOOSE sends the pin number to a php script.  Next the script requests a token from a 3rd party.  Last the php redirects the user to the 3rd party website with the appropriate parcel number and token.

<?php
$parcelNum = $_REQUEST['pin']; //get the pin number that is passed from geomoose
$user = "someUser";
$pass = "somePassword";
$county = "someCounty";
$token = file_get_contents("https://idocmarket.com/api/getsearchtoken?username=".$user."&password=".$pass);
header("Location: https://idocmarket.com/".$county."/document/search?parcel=".$parcelNum."&token=".$token."&Group=deeds");
?>

If anyone help debug this code please let me know.
Thank You!
Sincerely,
Mark Volz, GISP
Lyon County GIS Coordinator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20190404/02129691/attachment.html>


More information about the Geomoose-users mailing list