Skip to content

Instantly share code, notes, and snippets.

@jcmuller
Created December 2, 2012 01:55
Show Gist options
  • Save jcmuller/4186520 to your computer and use it in GitHub Desktop.
Save jcmuller/4186520 to your computer and use it in GitHub Desktop.
Success creating source
$ lwp-request -m POST http://data.mwater.co/msewage/apiv2/users/jcmuller
{"clientuid": "a695036f9c6d41d4980c0bf460cdc18e", "roles": []}%
$ lwp-request -m PUT http://data.mwater.co/msewage/apiv2/users/7ecfbf201e500130ac78109add5e2ae1\?clientuid\=a695036f9c6d41d4980c0bf460cdc18e
Please enter content (text/plain) to be PUTed:
created_by=jcmuller&description=SomeDescription&latitude=23.23243&longitude=87.863731&name=NARUGRAM&source_type=0&
<html><body><h1>Internal error</h1>Ticket issued: <a href="/admin/default/ticket/msewage/208.185.19.18.2012-12-02.01-54-15.4ba33f99-7b79-4043-9185-130f0b6d77e9" target="_blank">msewage/208.185.19.18.2012-12-02.01-54-15.4ba33f99-7b79-4043-9185-130f0b6d77e9</a></body><!-- this is junk text else IE does not display the page: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //--></html>%
$ lwp-request -m PUT http://data.mwater.co/msewage/apiv2/sources/7ecfbf201e500130ac78109add5e2ae1\?clientuid\=a695036f9c6d41d4980c0bf460cdc18e
Please enter content (text/plain) to be PUTed:
created_by=jcmuller&description=SomeDescription&latitude=23.23243&longitude=87.863731&name=NARUGRAM&source_type=0&
{"code": "11", "uid": "7ecfbf201e500130ac78109add5e2ae1", "photo": null, "created_by": "jcmuller", "name": null, "source_type": null, "longitude": null, "latitude": null, "desc": null}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment