Skip to content

Instantly share code, notes, and snippets.

@arobson
Created March 22, 2012 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arobson/2157232 to your computer and use it in GitHub Desktop.
Save arobson/2157232 to your computer and use it in GitHub Desktop.
Mockjax Definitions for my Fork Join Blog post
$.mockjax( {
url: "http://api.github.com/users/arobson",
type: "GET",
status: 200,
data: {
"name": "Alex Robson",
"company": "appendTo",
"public_repos": 31,
"followers": 18,
"following": 4,
"html_url": "https://github.com/arobson"
}
} );
$.mockjax( {
url: "https://api.twitter.com/1/users/show.json?screen_name=A_Robson",
type: "GET",
status: 200,
data: {
"name": "Alex Robson",
"profile_image_url": "https://twimg0-a.akamaihd.net/profile_images/1621555218/stogie.jpg",
"url": "http://twitter.com/!#/a_robson",
"followers_count": 287,
"description": "Aspiring coder of all the things.",
"friends_count": 245,
"statuses_count": 4322,
"screen_name": "A_Robson"
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment