Created
April 9, 2012 18:25
-
-
Save kylehill/2345247 to your computer and use it in GitHub Desktop.
Here's a fun code snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Go to any https://capitalbikeshare.com page | |
| // Open up Chrome Inspector, Javascript console | |
| // Paste in this, insert your credentials, submit | |
| $.post( | |
| 'https://capitalbikeshare.com/login', | |
| [{name:'username', value:'USERNAME'},{name:'password', value:'PASSWORD'}], | |
| function(data, textStatus, xhr) { | |
| console.log('logged in'); | |
| $.get( | |
| 'https://capitalbikeshare.com/member/rentals', | |
| function(data, textStatus, xhr) { | |
| console.log('rentals'); | |
| console.log(data); | |
| var d=$(data); | |
| }, | |
| 'html' | |
| ); | |
| }, | |
| 'html' | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment