Last active
December 15, 2015 09:39
-
-
Save toddway/5240560 to your computer and use it in GitHub Desktop.
This file contains 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
(function ($) { | |
//request user 1 in JSON format | |
$.getJSON('http://mysite.com/rest/user/1.json', function(data) { | |
console.log(data); //print the JSON response object to the console | |
}); | |
})(jQuery); |
This file contains 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
{ | |
"uid":"1", | |
"name":"admin", | |
"mail":"[email protected]", | |
"theme":"", | |
"signature":"", | |
"signature_format":"filtered_html", | |
"created":"1354058561", | |
"access":"1363899033", | |
"login":"1363725854", | |
"status":"1", | |
"timezone":"America/Chicago", | |
"language":"", | |
"picture":"0", | |
"init":"[email protected]", | |
"roles":{ | |
"2":"authenticated user" | |
}, | |
} |
This file contains 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
[ | |
"Access denied for user anonymous" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment