[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: HTTP API - two step communications.
Try to call the service without the "_ts" parameter. The "_ts"
parameter might be a session id which expires after 30 minutes. When I
call the service with "_ts" it get the following error message:
"Your American FactFinder session has expired after 30 minutes of
inactivity.
But when I call it without that parameter, I get the following
response:
{"AllRecords":{ "SearchRecords":{"Results":
{
"rowsPerPageOptions":[25,50,75],
"sort":"",
"dir":"",
"callingurlparams":"",
"TotalNumRecsAvailable": 0,
"TotalResultsReturned":10,
"CurrentPage":1,
"NumPages":1,
"StartRecNum":"",
"EndingRecNum":"",
"DisplayProperties":"p_record_canonical_name:Geography
Name,p_geography_summary_level_name:Geography
Type,info:About,p_geography_summary_level_code:Geography Summary Level
Code,p_geography_summary_level_code:Geography Summary Level
Code,d_geography_year:Geographic
Vintage,d_geography_pseudo_geography_ind:Pseudo Geography
Indicator,p_geography_year_state:Geography Year State",
"GeoMessage":"",
"FipscodeSearchInterface":"",
"FipsclasscodeSearchInterface":"",
"AnsicodeSearchInterface":"",
"LsadcodeSearchInterface":"",
"GeoSearchInterface":"",
"BlockIndexVintageList":"",
"DefaultMatchMode":"",
"SelectedProductsInSession":"",
"ProductIncludeArchive":"",
"batchLimit":""
,
"matchingAddress":"",
"selectedVintage":"2010",
"totalAddressRecords":"0",
"sort":"",
"dir":"",
"ResultSet":
[
]
}
}
}}
A JASON object is a special container to pass data around. Mihael
Schmidt has a nice JSON service program that may help you to get the
details out of the JSON container:
[1]http://www.rpgnextgen.com/index.php?content=json
Thomas.
ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 11.10.2011 17:29:22:
> Von: dcmason@xxxxxxxxxxxx
> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Datum: 11.10.2011 17:38
> Betreff: RE: HTTP API - two step communications.
> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>
> Hi:
> I have tried the below URL, but it does not appear to work.
> What is a JSON object.
> Thanks!
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [[2]mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Henrik Rützou
> Sent: Tuesday, October 11, 2011 10:32 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: HTTP API - two step communications.
>
> The link to the service you are looking for is:
>
> [3]http://factfinder2.census.gov/rest/addressSearch/search?
> street=aaa&city=vvv&state=Alaska&&_ts=336389236520
>
> and it will return a JSON object
>
> On Tue, Oct 11, 2011 at 1:59 PM, Chuck Mason <dcmason@xxxxxxxxxxxx>
wrote:
>
> >
> > [[4]cid:image001.gif@01CC87EB.78682FE0]
> >
> > Hi Scott:
> >
> > I have used your HTTP API utility at several clients of mine -
works
> > great.
> >
> >
> > I have run into a website that has me stumped.
> >
> > This is for a local taxing authority that needs to find the
school
> > district that an address resides in.
> >
> > I had written an interface for this (Their old web site would
display
> > a form, I would create a URL with the form fields and do a
submit).
> >
> > Their new web site opens up two windows. The second window
appears to
> > run from javascript.
> >
> >
> > My questions is, within RPGLE, Can I send a URL request, wait
for the
> > response, then fill in the information and submit. After this
submit,
> > the web page displays the information that I am looking for.
> >
> >
> > The url that I am having problems with is:
> >
> >
[1][5]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.
xht
> > ml?ref=addr&refresh=t
> >
> >
> > Fill in the street and zip or all, then submit the "GO" button.
> >
> >
> > Thanks
> >
> > Chuck Mason.
> >
> > References
> >
> > 1.
> >
[6]http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
ml?
> > ref=addr&refresh=t
> >
> >
----------------------------------------------------------------------
> > - This is the FTPAPI mailing list. To unsubscribe, please go to:
> > [7]http://www.scottklement.com/mailman/listinfo/ftpapi
> >
----------------------------------------------------------------------
> > -
> >
> >
>
>
> --
> Regards,
> Henrik Rützou
>
> [8]http://powerEXT.com <[9]http://powerext.com/>
>
>
----------------------------------------------------------------------
-
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [10]http://www.scottklement.com/mailman/listinfo/ftpapi
>
----------------------------------------------------------------------
-
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a
criminal
offence. Please delete if obtained in error and email confirmation to
the sender.
References
1. http://www.rpgnextgen.com/index.php?content=json
2. mailto:ftpapi-
3. http://factfinder2.census.gov/rest/addressSearch/search?
4. cid:image001.gif@01CC87EB.78682FE0
5. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xht
6. http://factfinder2.census.gov/faces/nav/jsf/pages/searchresults.xhtml?
7. http://www.scottklement.com/mailman/listinfo/ftpapi
8. http://powerext.com/
9. http://powerext.com/
10. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------