Skip to content

Instantly share code, notes, and snippets.

@Nicd
Created December 31, 2016 15:15
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 Nicd/c426c5e19ebc62867a2b1962b87850cc to your computer and use it in GitHub Desktop.
Save Nicd/c426c5e19ebc62867a2b1962b87850cc to your computer and use it in GitHub Desktop.
Code::Stats profile API suggestion
curl -X GET 'http://localhost:5000/api/users/Nicd'
{
"user":"Nicd",
"total_xp":3073421,
"new_xp":3289,
"machines":{
"Työkone":{
"xps":246116,
"new_xps":3289
},
"Best Machine":{
"xps":2827305,
"new_xps":0
}
},
"languages":{
"💩":{
"xps":1767278,
"new_xps":0
},
"XML":{
"xps":15,
"new_xps":0
},
"Pug":{
"xps":159000,
"new_xps":0
},
"Plaintext":{
"xps":3429,
"new_xps":3289
},
"OCaml":{
"xps":15,
"new_xps":0
},
"Markdown":{
"xps":2500,
"new_xps":0
},
"Lua":{
"xps":39308,
"new_xps":0
},
"HTML (EEx)":{
"xps":4260,
"new_xps":0
},
"GTLT":{
"xps":15,
"new_xps":0
},
"Foobar":{
"xps":12200,
"new_xps":0
},
"Elm":{
"xps":7080,
"new_xps":0
},
"Elixir":{
"xps":11555,
"new_xps":0
},
"C++":{
"xps":1060546,
"new_xps":0
},
"C":{
"xps":2500,
"new_xps":0
},
"Brainfuck":{
"xps":3720,
"new_xps":0
}
},
"dates":{
"2016-12-31":3289,
"2016-08-24":26700,
"2016-08-23":973,
"2016-08-22":39059,
"2016-08-21":13092,
"2016-08-19":12575,
"2016-08-15":149395,
"2016-08-14":240,
"2016-08-13":120,
"2016-08-01":80,
"2016-07-17":400,
"2016-07-16":20280,
"2016-07-14":2805880,
"2016-06-04":440,
"2016-06-03":80,
"2016-06-02":40,
"2016-06-01":242,
"2016-05-30":40,
"2016-05-29":1,
"2016-05-28":40,
"2016-05-22":175,
"2016-05-20":175,
"2016-05-17":80,
"2016-04-23":25
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment