Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access the secret API #1

Open
vdavez opened this issue Apr 8, 2014 · 3 comments
Open

Access the secret API #1

vdavez opened this issue Apr 8, 2014 · 3 comments

Comments

@vdavez
Copy link
Member

vdavez commented Apr 8, 2014

Behind this URL http://lims.dccouncil.us/_layouts/15/uploader/AdminProxy.aspx/GetPublicData and this payload {"legislationId":"B20-0199"}, there is a beautiful JSON response with most of the metadata associated with a particular measure.

To see it, go to http://lims.dccouncil.us/Legislation/B20-0199 and look up the requests to the server.

Unfortunately, curl -XPOST "http://lims.dccouncil.us/_layouts/15/uploader/AdminProxy.aspx/GetPublicData" -d "{\"legislationId\":\"B20-0153\"}" doesn't work, so we need to be a little more clever...

But, we can do it.

@kcivey
Copy link
Member

kcivey commented Apr 8, 2014

It needs a Content-Type header:

curl -XPOST "http://lims.dccouncil.us/_layouts/15/uploader/AdminProxy.aspx/GetPublicData" \
-d '{"legislationId":"B20-0199"}' -H 'Content-Type: application/json'

@vdavez
Copy link
Member Author

vdavez commented Apr 8, 2014

FTW!

@JoshData
Copy link
Member

JoshData commented Apr 8, 2014

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants