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
| public class Product { | |
| private String name; | |
| private float price; | |
| public Product(String name, float price){ | |
| this.name = name; | |
| this.price = price; | |
| } | |
| // ... getters and setters |
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
| curl http://8tracks.com/mixes.xml?api_key=c7a7a9bf65499f2adb75cc9620ad7364106b86fa | |
| - or - | |
| curl --header "X-Api-Key=c7a7a9bf65499f2adb75cc9620ad7364106b86fa" http://8tracks.com/mixes.xml |
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
| <response> | |
| <logged-in>false</logged-in> | |
| <status>200 OK</status> | |
| <page>1</page> | |
| <per-page>8</per-page> | |
| <errors nil="true"></errors> | |
| <total-entries>99880</total-entries> | |
| <mixes> | |
| <mix> | |
| ... |
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
| curl http://8tracks.com/mixes.xml | |
| curl http://8tracks.com/mixes.jsonp | |
| curl http://8tracks.com/mixes?format=json |
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
| <response> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <logged-in>false</logged-in> | |
| <page>1</page> | |
| <per-page>15</per-page> | |
| <total-entries>100</total-entries> | |
| ... | |
| </response> |
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
| curl http://8tracks.com/mixes.xml?api_key=1234567890 | |
| - or - | |
| curl --header "X-Api-Key: 1234567890" http://8tracks.com/mixes.xml |
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
| curl --request POST -d "login=remitest&password=password" https://8tracks.com/sessions.xml |
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
| <response> | |
| <user-token>1;123456789</user-token> | |
| <current-user> | |
| <slug>remitest</slug> | |
| <location></location> | |
| <popup-prefs>ask</popup-prefs> | |
| <next-mix-prefs>ask</next-mix-prefs> | |
| <avatar-urls> | |
| <sq72>/images/avatars/sq72.jpg</sq72> | |
| <sq100>/images/avatars/sq100.jpg</sq100> |
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
| curl --request POST -d "login=remi&password=bad" https://8tracks.com/sessions.xml |
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
| <response> | |
| <logged-in>false</logged-in> | |
| <status>422 Unprocessable Entity</status> | |
| <errors>Your login was unsuccessful</errors> | |
| <notices nil="true"></notices> | |
| </response> |
OlderNewer